public function testRemoveCache() { $cache = $this->getMock('Magento\\Framework\\Simplexml\\Config\\Cache\\File', ['remove']); $cache->expects($this->at(0))->method('remove')->with('cacheId')->will($this->returnValue(true)); $cache->expects($this->at(1))->method('remove')->with('cacheId__CHECKSUM')->will($this->returnValue(true)); $cache->expects($this->exactly(2))->method('remove'); $this->config->setCache($cache); $this->config->setCacheId('cacheId'); $this->config->removeCache(); }