You are here

public function ApdqcSessionTestCase::assertSessionCookie in Asynchronous Prefetch Database Query Cache 7

Assert whether the SimpleTest browser sent a session cookie.

1 call to ApdqcSessionTestCase::assertSessionCookie()
ApdqcSessionTestCase::testEmptyAnonymousSession in ./apdqc.test
Test that empty anonymous sessions are destroyed.

File

./apdqc.test, line 687
Tests for the Asynchronous Prefetch Database Query Cache module.

Class

ApdqcSessionTestCase
Tests for the session system.

Code

public 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.');
  }
}