diff --git a/tests/Feature/Http/Auth/LoginTest.php b/tests/Feature/Http/Auth/LoginTest.php index b3f5cb9e..35df48c5 100644 --- a/tests/Feature/Http/Auth/LoginTest.php +++ b/tests/Feature/Http/Auth/LoginTest.php @@ -84,6 +84,9 @@ public function test_login_send_new_device_notification() { Notification::fake(); + $this->user['preferences->notifyOnNewAuthDevice'] = 1; + $this->user->save(); + $this->json('POST', '/user/login', [ 'email' => $this->user->email, 'password' => self::PASSWORD, @@ -235,6 +238,9 @@ public function test_login_with_invalid_credentials_send_failed_login_notificati { Notification::fake(); + $this->user['preferences->notifyOnFailedLogin'] = 1; + $this->user->save(); + $this->json('POST', '/user/login', [ 'email' => $this->user->email, 'password' => self::WRONG_PASSWORD,