diff --git a/src/Oxrun/Command/Cache/ClearCommand.php b/src/Oxrun/Command/Cache/ClearCommand.php index 46f43b3c..312e6278 100644 --- a/src/Oxrun/Command/Cache/ClearCommand.php +++ b/src/Oxrun/Command/Cache/ClearCommand.php @@ -141,10 +141,10 @@ protected function enterpriseCache(OutputInterface $output) } try { - Registry::get('\OxidEsales\Eshop\Core\Cache\Generic\Cache')->flush(); + Registry::get('OxidEsales\Eshop\Core\Cache\Generic\Cache')->flush(); $output->writeln('Generic\Cache is cleared'); - Registry::get('\OxidEsales\Eshop\Core\Cache\DynamicContent\ContentCache')->reset(true); + Registry::get('OxidEsales\Eshop\Core\Cache\DynamicContent\ContentCache')->reset(true); $output->writeln('DynamicContent\Cache is cleared'); } catch (\Exception $e) { diff --git a/tests/Oxrun/Command/Cache/ClearCommandTest.php b/tests/Oxrun/Command/Cache/ClearCommandTest.php index c3ca9361..671a7fad 100644 --- a/tests/Oxrun/Command/Cache/ClearCommandTest.php +++ b/tests/Oxrun/Command/Cache/ClearCommandTest.php @@ -123,7 +123,7 @@ protected function mockEEGenericCacheClass() $genericCache = $this->prophesize(GenericCache::class); Registry::set(\OxidEsales\Facts\Facts::class, $facts->reveal()); - Registry::set('\OxidEsales\Eshop\Core\Cache\Generic\Cache', $genericCache->reveal()); + Registry::set('OxidEsales\Eshop\Core\Cache\Generic\Cache', $genericCache->reveal()); return [$facts, $genericCache]; } @@ -136,7 +136,7 @@ protected function mockEEGenericCacheAndDynamicContentClass() list($facts, $genericCache) = $this->mockEEGenericCacheClass(); $dynamicContentCache = $this->prophesize(DynamicContentCache::class); - Registry::set('\OxidEsales\Eshop\Core\Cache\DynamicContent\ContentCache', $dynamicContentCache->reveal()); + Registry::set('OxidEsales\Eshop\Core\Cache\DynamicContent\ContentCache', $dynamicContentCache->reveal()); return [$facts, $genericCache, $dynamicContentCache]; }