You are here

public function LoginHistoryCookieTest::testMissingCookieException in Login History 7

No login history cookie present.

File

tests/LoginHistoryTest.php, line 42

Class

LoginHistoryCookieTest

Code

public function testMissingCookieException() {

  // The cookie array should contain Drupal_visitor_login_history.
  $this
    ->setExpectedException('Exception', 'Login history device id not present.');
  login_history_get_device_id_from_cookie([], $this->salt);
}