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

Protected Member Functions

 setUp ()
 

Protected Attributes

bool $initializeDatabase = false
 
RedisSessionBackend $subject
 
Redis $redis
 
array $testSessionRecord
 

Detailed Description

@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 127 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ canCollectGarbage()

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

Definition at line 237 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ canLoadAllSessions()

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

Definition at line 225 of file RedisSessionBackendTest.php.

◆ cannotChangeSessionId()

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

Definition at line 185 of file RedisSessionBackendTest.php.

◆ cannotUpdateNonExistingRecord()

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

Definition at line 94 of file RedisSessionBackendTest.php.

◆ canPartiallyUpdateAfterGet()

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

Definition at line 286 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ canValidateSessionBackend()

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

Definition at line 104 of file RedisSessionBackendTest.php.

◆ existingSessionMustNotBeOverridden()

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

Definition at line 170 of file RedisSessionBackendTest.php.

◆ mergeSessionDataWithNewData()

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

Definition at line 152 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ sessionDataIsStoredProperly()

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

Definition at line 113 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ sessionGetsDestroyed()

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

Definition at line 208 of file RedisSessionBackendTest.php.

◆ setUp()

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

Set configuration for RedisSessionBackend

Definition at line 56 of file RedisSessionBackendTest.php.

References $GLOBALS.

◆ throwExceptionOnNonExistingSessionId()

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

Definition at line 141 of file RedisSessionBackendTest.php.

Member Data Documentation

◆ $initializeDatabase

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

Speed up this test case, it needs no database

Definition at line 33 of file RedisSessionBackendTest.php.

◆ $redis

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

Definition at line 41 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 37 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 45 of file RedisSessionBackendTest.php.