17 lines
292 B
PHP
17 lines
292 B
PHP
<?php
|
|
|
|
namespace Tests;
|
|
|
|
use App\Models\User;
|
|
|
|
class AuthenticateTest extends TestCase
|
|
{
|
|
public function testHandle()
|
|
{
|
|
$this->get('/user')->assertRedirect('auth/login');
|
|
|
|
$user = User::factory()->make();
|
|
$this->actingAs($user)->assertAuthenticated();
|
|
}
|
|
}
|