Guest User

Untitled

a guest
Oct 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. /** @test */
  2. public function a_user_can_see_the_landing_page()
  3. {
  4. $response = $this->get('/');
  5. $response->assertStatus(200);
  6. }
  7.  
  8. /** @test */
  9. public function a_user_who_isnt_signed_in_is_redirected_to_login()
  10. {
  11. $response = $this->get(route('home'));
  12. $response->assertRedirect(route('login'));
  13. }
  14.  
  15. PHPUnit 7.4.0 by Sebastian Bergmann and contributors.
  16.  
  17. .. 2 / 2 (100%)
  18.  
  19. Time: 187 ms, Memory: 14.00MB
  20.  
  21. OK (2 tests, 3 assertions)
Add Comment
Please, Sign In to add comment