فهرست منبع

Fix notification tests

Bubka 1 سال پیش
والد
کامیت
be3aaf319c
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      tests/Feature/Http/Auth/LoginTest.php

+ 6 - 0
tests/Feature/Http/Auth/LoginTest.php

@@ -84,6 +84,9 @@ class LoginTest extends FeatureTestCase
     {
         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 @@ class LoginTest extends FeatureTestCase
     {
         Notification::fake();
 
+        $this->user['preferences->notifyOnFailedLogin'] = 1;
+        $this->user->save();
+
         $this->json('POST', '/user/login', [
             'email'    => $this->user->email,
             'password' => self::WRONG_PASSWORD,