initial commit
Some checks failed
linter / quality (push) Failing after 3m48s
tests / ci (push) Failing after 4m13s

This commit is contained in:
2025-07-12 15:01:28 -07:00
commit ee37c6de85
265 changed files with 28931 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class DashboardTest extends TestCase
{
use RefreshDatabase;
public function test_guests_are_redirected_to_the_login_page()
{
$response = $this->get('/dashboard');
$response->assertRedirect('/login');
}
public function test_authenticated_users_can_visit_the_dashboard()
{
$user = User::factory()->create();
$this->actingAs($user);
$response = $this->get('/dashboard');
$response->assertStatus(200);
}
}