diff --git a/Tests/ConfigCacheTest.php b/Tests/ConfigCacheTest.php index 2c078fe3f..8662346d7 100644 --- a/Tests/ConfigCacheTest.php +++ b/Tests/ConfigCacheTest.php @@ -71,7 +71,7 @@ public function testIsFreshWhenNoResourceProvided(bool $debug) public function testFreshResourceInDebug() { $p = (new \ReflectionClass(SelfCheckingResourceChecker::class))->getProperty('cache'); - $p->setValue(SelfCheckingResourceChecker::class, []); + $p->setValue(null, []); $freshResource = new ResourceStub(); $freshResource->setFresh(true); @@ -85,7 +85,7 @@ public function testFreshResourceInDebug() public function testStaleResourceInDebug() { $p = (new \ReflectionClass(SelfCheckingResourceChecker::class))->getProperty('cache'); - $p->setValue(SelfCheckingResourceChecker::class, []); + $p->setValue(null, []); $staleResource = new ResourceStub(); $staleResource->setFresh(false);