1 session.test SessionTestCase::assertSessionCookie($sent)

Assert whether the SimpleTest browser sent a session cookie.

File

core/modules/simpletest/tests/session.test, line 263
Provides SimpleTests for core session handling functionality.

Class

SessionTestCase

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