environment('testing')) { $db = $app->make('db')->connection(); if ($db->getDriverName() === 'pgsql' && in_array($db->getDatabaseName(), ['portal_services_test', 'investmoz_test'], true) && (string) $db->getConfig('port') === '55441' && in_array($db->getConfig('host'), ['127.0.0.1', 'localhost'], true)) { $db->statement('DROP SCHEMA IF EXISTS skills_edu CASCADE'); } } return $app; } protected function setUp(): void { parent::setUp(); // HTTP feature tests must not depend on the developer's Vite SSR server. config(['inertia.ssr.enabled' => false]); } protected function skipUnlessFortifyHas(string $feature, ?string $message = null): void { if (! Features::enabled($feature)) { $this->markTestSkipped($message ?? "Fortify feature [{$feature}] is not enabled."); } } }