initial commit
This commit is contained in:
commit
2e0cbc254c
174 changed files with 27742 additions and 0 deletions
13
tests/Feature/DashboardTest.php
Normal file
13
tests/Feature/DashboardTest.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
use App\Models\User;
|
||||
|
||||
test('guests are redirected to the login page', function () {
|
||||
$this->get(route('dashboard'))->assertRedirect(route('login'));
|
||||
});
|
||||
|
||||
test('authenticated users can visit the dashboard', function () {
|
||||
$this->actingAs($user = User::factory()->create());
|
||||
|
||||
$this->get(route('dashboard'))->assertOk();
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue