浏览代码

Fix up test harness

mscherer 2 年之前
父节点
当前提交
2b855af033
共有 1 个文件被更改,包括 1 次插入12 次删除
  1. 1 12
      tests/bootstrap.php

+ 1 - 12
tests/bootstrap.php

@@ -126,20 +126,9 @@ class_alias(AppController::class, 'App\Controller\AppController');
 
 Plugin::getCollection()->add(new ToolsPlugin());
 
-if (getenv('DB_URL')) {
-	ConnectionManager::setConfig('test', [
-		'url' => getenv('DB_URL'),
-		'timezone' => 'UTC',
-		'quoteIdentifiers' => true,
-		'cacheMetadata' => true,
-	]);
-
-	return;
-}
-
 // Ensure default test connection is defined
 if (!getenv('DB_URL')) {
-	putenv('db_dsn=sqlite:///:memory:');
+	putenv('DB_URL=sqlite:///:memory:');
 }
 
 ConnectionManager::setConfig('test', [