‪TYPO3CMS  9.5
TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest:

Public Member Functions

 cannotUpdateNonExistingRecord ()
 
 canValidateSessionBackend ()
 
 sessionDataIsStoredProperly ()
 
 anonymousSessionDataIsStoredProperly ()
 
 throwExceptionOnNonExistingSessionId ()
 
 mergeSessionDataWithNewData ()
 
 nonHashedSessionIdsAreUpdated ()
 
 existingSessionMustNotBeOverridden ()
 
 cannotChangeSessionId ()
 
 sessionGetsDestroyed ()
 
 canLoadAllSessions ()
 
 canCollectGarbage ()
 
 canPartiallyUpdateAfterGet ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

RedisSessionBackend $subject
 
Redis $redis
 
array $testSessionRecord
 

Detailed Description

Test case

@requires extension redis

Definition at line 29 of file RedisSessionBackendTest.php.

Member Function Documentation

◆ anonymousSessionDataIsStoredProperly()

TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::anonymousSessionDataIsStoredProperly ( )
Test:

Definition at line 122 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ canCollectGarbage()

TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::canCollectGarbage ( )
Test:

Definition at line 257 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ canLoadAllSessions()

TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::canLoadAllSessions ( )
Test:
‪@covers SessionBackendInterface::getAll

Definition at line 245 of file RedisSessionBackendTest.php.

◆ cannotChangeSessionId()

TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::cannotChangeSessionId ( )
Test:
‪@covers SessionBackendInterface::update

Definition at line 205 of file RedisSessionBackendTest.php.

◆ cannotUpdateNonExistingRecord()

TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::cannotUpdateNonExistingRecord ( )
Test:

Definition at line 90 of file RedisSessionBackendTest.php.

◆ canPartiallyUpdateAfterGet()

TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::canPartiallyUpdateAfterGet ( )
Test:

Definition at line 298 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ canValidateSessionBackend()

TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::canValidateSessionBackend ( )
Test:

Definition at line 100 of file RedisSessionBackendTest.php.

◆ existingSessionMustNotBeOverridden()

TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::existingSessionMustNotBeOverridden ( )
Test:
‪@covers SessionBackendInterface::set

Definition at line 190 of file RedisSessionBackendTest.php.

◆ mergeSessionDataWithNewData()

TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::mergeSessionDataWithNewData ( )
Test:
‪@covers SessionBackendInterface::update

Definition at line 147 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ nonHashedSessionIdsAreUpdated()

TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::nonHashedSessionIdsAreUpdated ( )
Test:
‪@covers SessionBackendInterface::update

Definition at line 165 of file RedisSessionBackendTest.php.

References $GLOBALS, and TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest\$testSessionRecord.

◆ sessionDataIsStoredProperly()

TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::sessionDataIsStoredProperly ( )
Test:
‪@covers SessionBackendInterface::set

Definition at line 109 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ sessionGetsDestroyed()

TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::sessionGetsDestroyed ( )
Test:
‪@covers SessionBackendInterface::remove

Definition at line 228 of file RedisSessionBackendTest.php.

◆ setUp()

TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::setUp ( )
protected

Set configuration for RedisSessionBackend

Definition at line 52 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ throwExceptionOnNonExistingSessionId()

TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::throwExceptionOnNonExistingSessionId ( )
Test:
‪@covers SessionBackendInterface::get

Definition at line 136 of file RedisSessionBackendTest.php.

Member Data Documentation

◆ $redis

Redis TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::$redis
protected

Definition at line 37 of file RedisSessionBackendTest.php.

◆ $subject

RedisSessionBackend TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::$subject
protected

Prepared and connected redis test subject

Definition at line 33 of file RedisSessionBackendTest.php.

◆ $testSessionRecord

array TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::$testSessionRecord
protected
Initial value:
= array(
'ses_id' => '21c0e911565a67315cdc384889c470fd291feafbfa62e31ecf7409430640bc7a',
'ses_userid' => 1,
'ses_data' => 'a:2:{s:3:"foo";s:3:"bar";s:3:"boo";s:3:"far";}',
)

Definition at line 41 of file RedisSessionBackendTest.php.

Referenced by TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest\nonHashedSessionIdsAreUpdated().