function SessionTestCase::assertSessionCookie
Assert whether the SimpleTest browser sent a session cookie.
2 calls to SessionTestCase::assertSessionCookie()
- SessionTestCase::testEmptyAnonymousSession in drupal-7.x/
modules/ simpletest/ tests/ session.test - Test that empty anonymous sessions are destroyed.
- SessionTestCase::testEmptyAnonymousSession in drupal-7.x/
modules/ simpletest/ tests/ session.test - Test that empty anonymous sessions are destroyed.
Archivo
- drupal-7.x/
modules/ simpletest/ tests/ session.test, line 268 - Provides SimpleTests for core session handling functionality.
Class
Código
function assertSessionCookie($sent) {
if ($sent) {
$this->assertNotNull($this->session_id, 'Session cookie was sent.');
}
else {
$this->assertNull($this->session_id, 'Session cookie was not sent.');
}
}