public function LoginHistoryCookieTest::testInvalidCookie in Login History 7
Cookie present, but invalid structure.
File
- tests/
LoginHistoryTest.php, line 51
Class
Code
public function testInvalidCookie() {
// The cookie should be 3 strings separated by hyphens.
$this
->setExpectedException('Exception', 'Invalid login history cookie data.');
login_history_get_device_id_from_cookie([
'Drupal_visitor_login_history' => '9-1',
], $this->salt);
}