Merge pull request #6730 from nupplaphil/dba_reconnect

DBA::(re-)connect fix for basePath
This commit is contained in:
Hypolite Petovan 2019-02-23 08:45:31 -05:00 committed by GitHub
commit 44953f045e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 13 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'),