public function SessionStoreTest::testDelete in Auth0 Single Sign On 8.2
Test that SessionStore::delete trashes the stored value.
@runInSeparateProcess
Return value
void
File
- vendor/
auth0/ auth0-php/ tests/ Store/ SessionStoreTest.php, line 121
Class
- SessionStoreTest
- Class SessionStoreTest. Tests the SessionStore class.
Code
public function testDelete() {
session_start();
$_SESSION[self::$sessionKey] = self::TEST_VALUE;
$this
->assertTrue(isset($_SESSION[self::$sessionKey]));
self::$sessionStore
->delete(self::TEST_KEY);
$this
->assertNull(self::$sessionStore
->get(self::TEST_KEY));
$this
->assertFalse(isset($_SESSION[self::$sessionKey]));
}