ExampleTest.php 417 B

1234567891011121314151617181920
  1. <?php
  2. namespace Tests\Feature;
  3. // use Illuminate\Foundation\Testing\RefreshDatabase;
  4. use Tests\TestCase;
  5. class ExampleTest extends TestCase
  6. {
  7. /**
  8. * A basic test example.
  9. */
  10. public function test_the_application_redirects_unauthenticated_users(): void
  11. {
  12. $response = $this->get('/');
  13. // Unauthenticated users are redirected to login
  14. $response->assertRedirect();
  15. }
  16. }