Fixing DBA::(re-)connect()

This commit is contained in:
Philipp Holzer 2019-02-23 12:50:52 +01:00
commit 5f17ce574f
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
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'),