This commit is contained in:
salam committed 2026-09-23 16:33:26 +02:00
1 parent b74c374586
commit 1a46e5d887
6 files changed
+60 -18

No files matched your search

+17 -1
View File
@@ -1,5 +1,16 @@
<?php
use App\Models\User;
use Illuminate\Foundation\Testing\LazilyRefreshDatabase;
use Tests\TestCase;
// tests/Pest.php
uses(
TestCase::class,
LazilyRefreshDatabase::class,
)->in('Feature');
/*
|--------------------------------------------------------------------------
| Test Case
@@ -11,7 +22,7 @@
|
*/
pest()->extend(Tests\TestCase::class)
pest()->extend(TestCase::class)
// ->use(Illuminate\Foundation\Testing\RefreshDatabase::class)
->in('Feature');
@@ -30,6 +41,11 @@ expect()->extend('toBeOne', function () {
return $this->toBe(1);
});
test('the application returns a successful response')
->actingAs(User::factory()->create())
->get('/')
->assertStatus(200);
/*
|--------------------------------------------------------------------------
| Functions