| 7 session.test | SessionTestCase::assertSessionEmpty($empty) |
| 8 session.test | SessionTestCase::assertSessionEmpty($empty) |
Assert whether $_SESSION is empty at the beginning of the request.
File
- modules/
simpletest/ tests/ session.test, line 281 - Provides SimpleTests for core session handling functionality.
Code
function assertSessionEmpty($empty) {
if ($empty) {
$this->assertIdentical($this->drupalGetHeader('X-Session-Empty'), '1', t('Session was empty.'));
}
else {
$this->assertIdentical($this->drupalGetHeader('X-Session-Empty'), '0', t('Session was not empty.'));
}
}
Login or register to post comments