function SessionTestCase::assertSessionEmpty

Assert whether $_SESSION is empty at the beginning of the request.

2 calls to SessionTestCase::assertSessionEmpty()
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 280
Provides SimpleTests for core session handling functionality.

Class

SessionTestCase

Código

function assertSessionEmpty($empty) {
  if ($empty) {
    $this->assertIdentical($this->drupalGetHeader('X-Session-Empty'), '1', 'Session was empty.');
  }
  else {
    $this->assertIdentical($this->drupalGetHeader('X-Session-Empty'), '0', 'Session was not empty.');
  }
}