Browse Source

Update LoginTest

Daniel Supernault 6 năm trước cách đây
mục cha
commit
5d91fb2051
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      tests/Feature/LoginTest.php

+ 4 - 1
tests/Feature/LoginTest.php

@@ -25,7 +25,10 @@ class LoginTest extends TestCase
             $response->assertSuccessful()
                      ->assertSee('Register a new account');
         } else {
-            $this->assertTrue(true);
+            $response = $this->get('register');
+
+            $response->assertSuccessful()
+                    ->assertSee('Registration is closed');
         }
     }
 }