public function testCleanType() { $this->_cache->expects($this->once())->method('load')->with(TypeList::INVALIDATED_TYPES)->will($this->returnValue(serialize($this->_typesArray))); $this->_config->expects($this->once())->method('getType')->with(self::TYPE_KEY)->will($this->returnValue(['instance' => self::CACHE_TYPE])); unset($this->_typesArray[self::TYPE_KEY]); $this->_cache->expects($this->once())->method('save')->with(serialize($this->_typesArray), TypeList::INVALIDATED_TYPES); $this->_typeList->cleanType(self::TYPE_KEY); }
/** * @return array */ public function getTypes() { return $this->cacheTypeList->getTypes(); }