protected function getCacheMock($type = 'good') { $good = ['successfiles' => 1, 'failedfiles' => 0]; $bad = ['successfiles' => 0, 'failedfiles' => 1, 'failed' => ['test.txt']]; $cache = parent::getCacheMock(); $cache->expects($this->once())->method('doFlush')->will($this->returnValue(${$type})); return $cache; }
protected function getCacheMock($path = null, $flushResult = true) { $cache = parent::getCacheMock($path); $cache->expects($this->once())->method('flushAll')->will($this->returnValue($flushResult)); return $cache; }