21 lines
412 B
PHP
Executable File
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'));
|
|
}
|
|
}
|