This commit is contained in:
2025-06-03 12:40:13 +05:45
parent 50c804d445
commit f9a589c05f
201 changed files with 34026 additions and 2 deletions

View File

@ -0,0 +1,18 @@
<?php
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Route;
it('can visit the welcome page', function () {
$response = $this->get('/');
$response->assertStatus(200);
$response->assertSee('Welcome');
});
it('can visit the dashboard page when logged in', function () {
$user = \App\Models\User::factory()->create();
$response = $this->actingAs($user)->get('/dashboard');
$response->assertStatus(200);
$response->assertSee('Dashboard');
});