mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-05 14:51:07 +00:00
refactor(tests): restate legacy-era scaffolding in the triage test files
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user