25 lines
489 B
PHP
25 lines
489 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Feature\Admin;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Tests\TestCase;
|
|
|
|
class AdminHomeControllerTest extends TestCase
|
|
{
|
|
use RefreshDatabase;
|
|
|
|
/** @test */
|
|
public function adminHomepageLoads(): void
|
|
{
|
|
$user = User::factory()->make();
|
|
|
|
$response = $this->actingAs($user)
|
|
->get('/admin');
|
|
|
|
$response->assertViewIs('admin.welcome');
|
|
}
|
|
}
|