Ensured same testing database is used to generate with entities and to run functional tests

This commit is contained in:
Alejandro Celaya
2017-10-23 12:19:28 +02:00
parent 0bd9f1e19f
commit 91442a3379
4 changed files with 13 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ if ($isTest) {
$config = $container->get('config');
$config['entity_manager']['connection'] = [
'driver' => 'pdo_sqlite',
'memory' => true,
'path' => realpath(sys_get_temp_dir()) . '/shlink-tests.db',
];
$container->setService('config', $config);
}