You are here

function MemcacheSessionTestCase::assertSessionCookie in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 modules/memcache/tests/memcache-session.test \MemcacheSessionTestCase::assertSessionCookie()

Assert whether the SimpleTest browser sent a session cookie.

1 call to MemcacheSessionTestCase::assertSessionCookie()
MemcacheSessionTestCase::testEmptyAnonymousSession in modules/memcache/tests/memcache-session.test
Test that empty anonymous sessions are destroyed.

File

modules/memcache/tests/memcache-session.test, line 206
Provides SimpleTests for core session handling functionality.

Class

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