‪TYPO3CMS  10.4
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 31 of file RedisSessionBackendTest.php.

Member Function Documentation

◆ anonymousSessionDataIsStoredProperly()

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

Definition at line 125 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ canCollectGarbage()

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

Definition at line 260 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ canLoadAllSessions()

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

Definition at line 248 of file RedisSessionBackendTest.php.

◆ cannotChangeSessionId()

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

Definition at line 208 of file RedisSessionBackendTest.php.

◆ cannotUpdateNonExistingRecord()

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

Definition at line 92 of file RedisSessionBackendTest.php.

◆ canPartiallyUpdateAfterGet()

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

Definition at line 309 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ canValidateSessionBackend()

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

Definition at line 102 of file RedisSessionBackendTest.php.

◆ existingSessionMustNotBeOverridden()

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

Definition at line 193 of file RedisSessionBackendTest.php.

◆ mergeSessionDataWithNewData()

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

Definition at line 150 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ nonHashedSessionIdsAreUpdated()

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

Definition at line 168 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 111 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ sessionGetsDestroyed()

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

Definition at line 231 of file RedisSessionBackendTest.php.

◆ setUp()

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

Set configuration for RedisSessionBackend

Definition at line 54 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ throwExceptionOnNonExistingSessionId()

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

Definition at line 139 of file RedisSessionBackendTest.php.

Member Data Documentation

◆ $redis

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

Definition at line 39 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 35 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 43 of file RedisSessionBackendTest.php.

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