You are here

public function LoginHistoryCookieTest::testCookieDataStructure in Login History 7

All 3 elements are present, but fail basic sanity check for length.

File

tests/LoginHistoryTest.php, line 60

Class

LoginHistoryCookieTest

Code

public function testCookieDataStructure() {

  // The cookie should be 3 strings separated by hyphens.
  $this
    ->setExpectedException('Exception', 'Login history cookie data not structured properly.');
  login_history_get_device_id_from_cookie([
    'Drupal_visitor_login_history' => '9-1-0',
  ], $this->salt);
}