From 102b60ccb527ec350bebd93d1a0b64df42ab93fa Mon Sep 17 00:00:00 2001 From: Alexandr Chernyaev Date: Mon, 4 Nov 2024 03:24:46 +0300 Subject: [PATCH] Remove unused option when running phpunit --- .github/workflows/phpunit.yml | 2 +- phpunit.xml | 1 + tests/Environment.php | 14 +------------- tests/TestBrowserCase.php | 8 -------- 4 files changed, 3 insertions(+), 22 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index cc844ffbe..d17eba1d8 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -77,7 +77,7 @@ jobs: run: vendor/bin/dusk-updater detect --auto-update - name: Execute Unit Tests - run: vendor/bin/phpunit --testsuite=Browser --no-coverage --disable-coverage-ignore + run: vendor/bin/phpunit --testsuite=Browser --no-coverage env: CI: true diff --git a/phpunit.xml b/phpunit.xml index 1b676aaa3..e5523e019 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -35,6 +35,7 @@ + diff --git a/tests/Environment.php b/tests/Environment.php index c69e804ec..d2a30c5c0 100644 --- a/tests/Environment.php +++ b/tests/Environment.php @@ -66,19 +66,7 @@ protected function defineDatabaseMigrations() */ protected function getEnvironmentSetUp($app): void { - $config = config(); - - $config->set('app.debug', true); - $config->set('auth.providers.users.model', User::class); - - // set up database configuration - $config->set('database.connections.orchid', [ - 'driver' => 'sqlite', - 'database' => ':memory:', - 'prefix' => '', - ]); - $config->set('scout.driver', 'collection'); - $config->set('database.default', 'orchid'); + config()->set('auth.providers.users.model', User::class); } /** diff --git a/tests/TestBrowserCase.php b/tests/TestBrowserCase.php index 2163ae8ea..e40217305 100644 --- a/tests/TestBrowserCase.php +++ b/tests/TestBrowserCase.php @@ -39,14 +39,6 @@ protected function getEnvironmentSetUp($app) { $this->getEnvSetUp($app); - config()->set('database.connections.orchid', [ - 'driver' => 'sqlite', - 'url' => env('DATABASE_URL'), - 'database' => env('DB_DATABASE', database_path('database.sqlite')), - 'prefix' => '', - 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), - ]); - config()->set('platform.prevents_abandonment', false); if (isset($_SERVER['CI'])) {