refactor(tests): restate legacy-era scaffolding in the triage test files

This commit is contained in:
Darko Gjorgjijoski
2026-08-22 12:09:51 +02:00
parent 59d3f2a869
commit 8076132b92
10 changed files with 41 additions and 52 deletions
@@ -10,11 +10,11 @@ use Laravel\Sanctum\Sanctum;
use function Pest\Laravel\getJson;
use function Pest\Laravel\postJson;
beforeEach(function () {
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
Artisan::call('db:seed', ['--class' => 'DemoSeeder', '--force' => true]);
beforeEach(function (): void {
Artisan::call('db:seed', ['--force' => true, '--class' => 'DatabaseSeeder']);
Artisan::call('db:seed', ['--force' => true, '--class' => 'DemoSeeder']);
$user = User::find(1);
$user = User::query()->find(1);
$this->companyId = $user->companies()->first()->id;
$this->withHeaders([