make(Kernel::class)->bootstrap(); Artisan::call('migrate:refresh'); if (!file_exists(storage_path('install.lock'))) { file_put_contents(storage_path('install.lock'), ''); } return $app; } protected function setUp(): void { parent::setUp(); $this->spy(\App\Services\Translations\JavaScript::class); } }