Skip to content

Commit

Permalink
Merge pull request #176 from FriendsOfCake/tests
Browse files Browse the repository at this point in the history
Fix db config usage in tests.
  • Loading branch information
ADmad committed Aug 18, 2022
2 parents e2b8409 + be664f7 commit 94c957f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@
);

// Ensure default test connection is defined
if (!getenv('db_dsn')) {
putenv('db_dsn=sqlite:///:memory:');
if (!getenv('DB_URL')) {
putenv('DB_URL=sqlite:///:memory:');
}

Cake\Datasource\ConnectionManager::setConfig(
'test',
[
'url' => getenv('db_dsn'),
'url' => getenv('DB_URL'),
'timezone' => 'UTC'
]
);
Expand Down

0 comments on commit 94c957f

Please sign in to comment.