An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(tests): reuse instance settings in API token team tests
Andras Bacsai7193a5d0f646
diff --git a/tests/Feature/ApiTokenTeamLifecycleSecurityTest.php b/tests/Feature/ApiTokenTeamLifecycleSecurityTest.phpindex d5ab83af0e..c254a26c3d 100644--- a/tests/Feature/ApiTokenTeamLifecycleSecurityTest.php+++ b/tests/Feature/ApiTokenTeamLifecycleSecurityTest.php@@ -14,10 +14,10 @@ use Livewire\Livewire;uses(RefreshDatabase::class);beforeEach(function () {- InstanceSettings::unguarded(fn () => InstanceSettings::query()->create([- 'id' => 0,- 'is_api_enabled' => true,- ]));+ InstanceSettings::unguarded(fn () => InstanceSettings::query()->updateOrCreate(+ ['id' => 0],+ ['is_api_enabled' => true],+ ));$this->team = Team::factory()->create();$this->user = User::factory()->create();