LoginControllerTest.php 472 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Tests\Feature;
  3. use Tests\TestCase;
  4. class LoginControllerTest extends TestCase
  5. {
  6. public function test_it_loads_the_login_page(): void
  7. {
  8. $response = $this->get('/login');
  9. self::assertSame(200, $response->getStatusCode());
  10. }
  11. public function test_it_redirect_back_to_login_page_with_no_credentials(): void
  12. {
  13. $response = $this->post('/login');
  14. self::assertSame(200, $response->getStatusCode());
  15. }
  16. }