We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bb106c commit d67d7d1Copy full SHA for d67d7d1
test/helpers/DatabaseTestCase.php
@@ -31,8 +31,8 @@ public function setUp(string $connection_name=null): void
31
32
$this->original_date_class = $config->get_date_class();
33
34
- if ('sqlite' == $connection_name || 'sqlite' == $config->get_default_connection()) {
35
- // need to create the db. the adapter specifically does not create it for us.
+ if (empty($envDatabase) && 'sqlite' == $connection_name || 'sqlite' == $config->get_default_connection()) {
+ // need to create the db (when not running in CI). the adapter specifically does not create it for us.
36
static::$db = substr(ActiveRecord\Config::instance()->get_connection('sqlite'), 9);
37
new SQLite3(static::$db);
38
}
0 commit comments