]> git.mxchange.org Git - friendica.git/commitdiff
Revert ProfilerTest
authorPhilipp Holzer <admin+github@philipp.info>
Mon, 5 Aug 2019 07:22:06 +0000 (09:22 +0200)
committerPhilipp Holzer <admin+github@philipp.info>
Mon, 5 Aug 2019 07:22:06 +0000 (09:22 +0200)
tests/functional/DependencyCheckTest.php

index 2a3eed5973048bdae28c5fa967c82f1811076964..5ade50dfb438db863dffede60ccad4a93535cca3 100644 (file)
@@ -87,7 +87,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())->create(Profiler::class, [$configCache]);
+               $this->dice = new Dice(include __DIR__ . '/../../static/dependencies.config.php');
+               $profiler = $this->dice->create(Profiler::class, [$configCache]);
 
                $this->assertInstanceOf(Profiler::class, $profiler);
                $this->assertTrue($profiler->isRendertime());