Fixing DBA::(re-)connect()
This commit is contained in:
parent
a73235b6ee
commit
5f17ce574f
2 changed files with 8 additions and 8 deletions
|
@ -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'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue