mirror of
https://github.com/bs-community/blessing-skin-server
synced 2026-08-18 04:32:05 -04:00
16 lines
292 B
PHP
16 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();
|
|
}
|
|
}
|