Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** @test */
- public function a_user_can_see_the_landing_page()
- {
- $response = $this->get('/');
- $response->assertStatus(200);
- }
- /** @test */
- public function a_user_who_isnt_signed_in_is_redirected_to_login()
- {
- $response = $this->get(route('home'));
- $response->assertRedirect(route('login'));
- }
- PHPUnit 7.4.0 by Sebastian Bergmann and contributors.
- .. 2 / 2 (100%)
- Time: 187 ms, Memory: 14.00MB
- OK (2 tests, 3 assertions)
Add Comment
Please, Sign In to add comment