1
0
Fork 0

Fix and adapt tests

This commit is contained in:
Philipp Holzer 2023-02-12 13:09:05 +01:00
commit ad284208ee
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
3 changed files with 30 additions and 30 deletions

View file

@ -37,8 +37,15 @@ trait CreateDatabaseTrait
use DatabaseTestTrait;
use VFSTrait;
/** @var Database|null */
protected $dba = null;
public function getDbInstance(): Database
{
if (isset($this->dba)) {
return $this->dba;
}
$configFileManager = new ConfigFileManager($this->root->url(), $this->root->url() . '/config/', $this->root->url() . '/static/');
$config = new ReadOnlyFileConfig(new Cache([
'database' => [