Fixing DBA::(re-)connect()

This commit is contained in:
Philipp Holzer
2019-02-23 12:50:52 +01:00
parent a73235b6ee
commit 5f17ce574f
2 changed files with 8 additions and 8 deletions

View File

@@ -40,14 +40,14 @@ abstract class DatabaseTest extends MockedTest
$this->markTestSkipped('Please set the MYSQL_* environment variables to your test database credentials.');
}
$basedir = BasePath::create(dirname(__DIR__));
$configLoader = new Cache\ConfigCacheLoader($basedir);
$basePath = BasePath::create(dirname(__DIR__));
$configLoader = new Cache\ConfigCacheLoader($basePath);
$config = Factory\ConfigFactory::createCache($configLoader);
$profiler = \Mockery::mock(Profiler::class);
DBA::connect(
$basedir,
$basePath,
$config,
$profiler,
getenv('MYSQL_HOST'),