Skip to content

Commit

Permalink
Remove unused option when running phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Nov 4, 2024
1 parent e42fd92 commit 102b60c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
<env name="APP_DEBUG" value="true"/>
<env name="APP_URL" value="http://127.0.0.1:8001"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="PLATFORM_DOMAIN" value="127.0.0.1"/>
<env name="PLATFORM_PREFIX" value="/dashboard"/>
Expand Down
14 changes: 1 addition & 13 deletions tests/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
8 changes: 0 additions & 8 deletions tests/TestBrowserCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down

0 comments on commit 102b60c

Please sign in to comment.