function SessionTestCase::assertSessionCookie
Assert whether the SimpleTest browser sent a session cookie.
1 call to SessionTestCase::assertSessionCookie()
- SessionTestCase::testEmptyAnonymousSession in modules/
simpletest/ tests/ session.test - Test that empty anonymous sessions are destroyed.
File
-
modules/
simpletest/ tests/ session.test, line 513
Class
- SessionTestCase
- @file Provides SimpleTests for core session handling functionality.
Code
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.');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.