Overwrite constructor of Memory session handling so no session ini-setting in backend/testing environments are possible

This commit is contained in:
nupplaPhil 2019-12-10 23:35:16 +01:00
parent af1299c697
commit 02c40ad1cb
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
2 changed files with 9 additions and 1 deletions

View file

@ -62,7 +62,7 @@ class ApiTest extends DatabaseTest
$this->dice = (new Dice())
->addRules(include __DIR__ . '/../../static/dependencies.config.php')
->addRule(Database::class, ['instanceOf' => StaticDatabase::class, 'shared' => true])
->addRule(ISession::class, ['instanceOf' => Session\Memory::class, 'shared' => true]);
->addRule(ISession::class, ['instanceOf' => Session\Memory::class, 'shared' => true, 'call' => null]);
BaseObject::setDependencyInjection($this->dice);
/** @var Database $dba */