Skip to content

Commit

Permalink
Move database configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
joshhanley committed Apr 24, 2024
1 parent b42af0d commit cdacf16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ protected function getEnvironmentSetUp($app)
{
parent::getEnvironmentSetUp($app);

$app['config']->set('database.default', 'testbench');
$app['config']->set('database.connections.testbench', [
'driver' => 'sqlite',
'database' => __DIR__ . '/../../../database/database.sqlite',
'prefix' => '',
]);

$app['config']->set('livewire.legacy_model_binding', true);
}

Expand Down
7 changes: 6 additions & 1 deletion tests/Browser/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ public static function tweakApplicationHook()
return function () {
config()->set('autocomplete.options.auto-select', false);
config()->set('autocomplete.options.allow-new', false);
config()->set('database.default', 'sqlite');
config()->set('database.default', 'testbench');
config()->set('database.connections.testbench', [
'driver' => 'sqlite',
'database' => __DIR__ . '/../../database/database.sqlite',
'prefix' => '',
]);
};
}

Expand Down

0 comments on commit cdacf16

Please sign in to comment.