You are here

public function LoginHistoryCookieTest::testCookieDataContents in Login History 7

Invalid hmac.

File

tests/LoginHistoryTest.php, line 69

Class

LoginHistoryCookieTest

Code

public function testCookieDataContents() {

  // The cookie should be 3 strings separated by hyphens.
  $this
    ->setExpectedException('Exception', 'Invalid login history hmac');
  $derived_device_id = login_history_get_device_id_from_cookie([
    'Drupal_visitor_login_history' => '5b58eada6ac8e705e03b4c26c63800f1fdd88e3f93a2fefa04cff04db04ac952-1426aed16098dc76268e242dd88e325fa9e96ed7b1e88fae65488eece5079cc5-1',
  ], $this->salt);
}