public function testWarmUpCacheWithClassName() { $this->configProvider->expects($this->once())->method('hasConfig')->with(self::SOME_CLASS)->willReturn(true); $this->configProvider->expects($this->once())->method('getConfig')->with(self::SOME_CLASS)->willReturn($this->config); $this->cache->expects($this->once())->method('fetch')->with(self::SOME_CLASS)->willReturn(false); $this->cache->expects($this->once())->method('save')->with(self::SOME_CLASS); $this->provider->warmUpCache(self::SOME_CLASS); }