‪TYPO3CMS  ‪main
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 ()
 
 existingSessionMustNotBeOverridden ()
 
 cannotChangeSessionId ()
 
 sessionGetsDestroyed ()
 
 canLoadAllSessions ()
 
 canCollectGarbage ()
 
 canPartiallyUpdateAfterGet ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

bool $initializeDatabase = false
 
array $testSessionRecord
 

Private Attributes

RedisSessionBackend $subject
 
Redis $redis
 

Detailed Description

Definition at line 29 of file RedisSessionBackendTest.php.

Member Function Documentation

◆ anonymousSessionDataIsStoredProperly()

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

Definition at line 100 of file RedisSessionBackendTest.php.

References $GLOBALS, and TYPO3\CMS\Webhooks\Message\$record.

◆ canCollectGarbage()

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

Definition at line 178 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ canLoadAllSessions()

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

Definition at line 169 of file RedisSessionBackendTest.php.

◆ cannotChangeSessionId()

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

Definition at line 141 of file RedisSessionBackendTest.php.

◆ cannotUpdateNonExistingRecord()

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

Definition at line 76 of file RedisSessionBackendTest.php.

◆ canPartiallyUpdateAfterGet()

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

Definition at line 219 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ canValidateSessionBackend()

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

Definition at line 84 of file RedisSessionBackendTest.php.

◆ existingSessionMustNotBeOverridden()

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

Definition at line 131 of file RedisSessionBackendTest.php.

◆ mergeSessionDataWithNewData()

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

Definition at line 117 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ sessionDataIsStoredProperly()

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

Definition at line 90 of file RedisSessionBackendTest.php.

References $GLOBALS, and TYPO3\CMS\Webhooks\Message\$record.

◆ sessionGetsDestroyed()

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

Definition at line 157 of file RedisSessionBackendTest.php.

◆ setUp()

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

Definition at line 44 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ throwExceptionOnNonExistingSessionId()

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

Definition at line 109 of file RedisSessionBackendTest.php.

Member Data Documentation

◆ $initializeDatabase

bool TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::$initializeDatabase = false
protected

Definition at line 31 of file RedisSessionBackendTest.php.

◆ $redis

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

Definition at line 34 of file RedisSessionBackendTest.php.

◆ $subject

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

Definition at line 33 of file RedisSessionBackendTest.php.

◆ $testSessionRecord

array TYPO3\CMS\Core\Tests\Functional\Session\Backend\RedisSessionBackendTest::$testSessionRecord
protected
Initial value:
= [
'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 36 of file RedisSessionBackendTest.php.