Skip to content

Commit 94c957f

Browse files
authored
Merge pull request #176 from FriendsOfCake/tests
Fix db config usage in tests.
2 parents e2b8409 + be664f7 commit 94c957f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/bootstrap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@
8686
);
8787

8888
// Ensure default test connection is defined
89-
if (!getenv('db_dsn')) {
90-
putenv('db_dsn=sqlite:///:memory:');
89+
if (!getenv('DB_URL')) {
90+
putenv('DB_URL=sqlite:///:memory:');
9191
}
9292

9393
Cake\Datasource\ConnectionManager::setConfig(
9494
'test',
9595
[
96-
'url' => getenv('db_dsn'),
96+
'url' => getenv('DB_URL'),
9797
'timezone' => 'UTC'
9898
]
9999
);

0 commit comments

Comments
 (0)