]> git.mxchange.org Git - friendica.git/commitdiff
Fix DI-check test
authorPhilipp Holzer <admin+github@philipp.info>
Wed, 24 Jul 2019 10:48:29 +0000 (12:48 +0200)
committerPhilipp Holzer <admin+github@philipp.info>
Wed, 24 Jul 2019 10:48:29 +0000 (12:48 +0200)
tests/functional/DependencyCheckTest.php

index 4a1ab5afde28a4b543955c28f92d4627c16aae04..9fe469d5e88f29140a5a8342eb0724f30270fec2 100644 (file)
@@ -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);