From: Philipp Holzer Date: Wed, 24 Jul 2019 10:48:29 +0000 (+0200) Subject: Fix DI-check test X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=71bc37c1c1dbd2ba2b49e65abd2497ed1a02b671;p=friendica.git Fix DI-check test --- diff --git a/tests/functional/DependencyCheckTest.php b/tests/functional/DependencyCheckTest.php index 4a1ab5afde..9fe469d5e8 100644 --- a/tests/functional/DependencyCheckTest.php +++ b/tests/functional/DependencyCheckTest.php @@ -83,6 +83,8 @@ class dependencyCheck extends TestCase ] ]); + // create new DI-library because of shared instance rule (so the Profiler wouldn't get created twice) + $this->dice = new Dice(include __DIR__ . '/../../static/dependencies.config.php'); $profiler = $this->dice->create(Profiler::class, [$configCache]); $this->assertInstanceOf(Profiler::class, $profiler);