Browse Source

Revert ProfilerTest

tags/2019.09
Philipp Holzer 1 year ago
parent
commit
2e65b96cb4
No known key found for this signature in database GPG Key ID: D8365C3D36B77D90
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tests/functional/DependencyCheckTest.php

+ 2
- 1
tests/functional/DependencyCheckTest.php View 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());


Loading…
Cancel
Save