Created
May 22, 2018 20:41
-
-
Save DCzajkowski/11413d21de2d9b84f8a762f8d799c352 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // ... | |
| class LoginTest extends TestCase | |
| { | |
| // ... | |
| public function test_user_cannot_view_a_login_form_when_authenticated() | |
| { | |
| $user = factory(User::class)->make(); | |
| $response = $this->actingAs($user)->get('/login'); | |
| $response->assertRedirect('/home'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment