You are here

private function LoginHistoryTestCase::loginHistoryRuinDeviceIdHistory in Login History 7

Screws up stored device ID values so new logins will trigger an email.

1 call to LoginHistoryTestCase::loginHistoryRuinDeviceIdHistory()
LoginHistoryTestCase::testLoginHistory in tests/login_history.test
Tests basic login history features.

File

tests/login_history.test, line 149
Tests for Login History module.

Class

LoginHistoryTestCase
@file Tests for Login History module.

Code

private function loginHistoryRuinDeviceIdHistory() {
  db_update('login_history')
    ->fields(array(
    'device_id' => 'peanut butter',
  ))
    ->execute();
}