Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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');
- }
- }
Add Comment
Please, Sign In to add comment