| 7 session.test | SessionTestCase::assertSessionCookie($sent) |
| 8 session.test | SessionTestCase::assertSessionCookie($sent) |
Assert whether the SimpleTest browser sent a session cookie.
File
- modules/
simpletest/ tests/ session.test, line 269 - Provides SimpleTests for core session handling functionality.
Code
function assertSessionCookie($sent) {
if ($sent) {
$this->assertNotNull($this->session_id, t('Session cookie was sent.'));
}
else {
$this->assertNull($this->session_id, t('Session cookie was not sent.'));
}
}
Login or register to post comments