vacation-planner/tests/Feature/ExampleTest.php
2026-11-28 12:59:18 +08:00

21 lines
412 B
PHP
Executable File

<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class ExampleTest extends TestCase
{
use RefreshDatabase;
public function test_home_redirects_guests_to_login()
{
$response = $this->get(route('home'));
$response->assertRedirect(route('planner'));
$this->get(route('planner'))->assertRedirect(route('login'));
}
}