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

Public Member Functions

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

Protected Member Functions

 setUp ()
 

Protected Attributes

DatabaseSessionBackend $subject
 
array $testSessionRecord
 

Detailed Description

Test case

Definition at line 28 of file DatabaseSessionBackendTest.php.

Member Function Documentation

◆ anonymousSessionDataIsStoredProperly()

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

Definition at line 85 of file DatabaseSessionBackendTest.php.

References $GLOBALS.

◆ canCollectGarbage()

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

Definition at line 198 of file DatabaseSessionBackendTest.php.

References $GLOBALS.

◆ canLoadAllSessions()

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

Definition at line 186 of file DatabaseSessionBackendTest.php.

◆ cannotChangeSessionId()

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

◆ canPartiallyUpdateAfterGet()

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

Definition at line 247 of file DatabaseSessionBackendTest.php.

References $GLOBALS.

◆ canValidateSessionBackend()

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

Definition at line 62 of file DatabaseSessionBackendTest.php.

◆ existingSessionMustNotBeOverridden()

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

Definition at line 130 of file DatabaseSessionBackendTest.php.

◆ mergeSessionDataWithNewData()

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

Definition at line 111 of file DatabaseSessionBackendTest.php.

References $GLOBALS.

◆ sessionDataIsStoredProperly()

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

Definition at line 71 of file DatabaseSessionBackendTest.php.

References $GLOBALS.

◆ sessionGetsDestroyed()

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

Definition at line 169 of file DatabaseSessionBackendTest.php.

◆ setUp()

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

Set configuration for DatabaseSessionBackend

Definition at line 47 of file DatabaseSessionBackendTest.php.

References $GLOBALS.

◆ throwExceptionOnNonExistingSessionId()

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

Definition at line 100 of file DatabaseSessionBackendTest.php.

Member Data Documentation

◆ $subject

DatabaseSessionBackend TYPO3\CMS\Core\Tests\Functional\Session\Backend\DatabaseSessionBackendTest::$subject
protected

Definition at line 32 of file DatabaseSessionBackendTest.php.

◆ $testSessionRecord

array TYPO3\CMS\Core\Tests\Functional\Session\Backend\DatabaseSessionBackendTest::$testSessionRecord
protected
Initial value:
= array(
'ses_id' => '76898588caa1baee7984f4dc8adfed3b',
'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 DatabaseSessionBackendTest.php.

Referenced by TYPO3\CMS\Core\Tests\Functional\Session\Backend\DatabaseSessionBackendTest\cannotChangeSessionId().