Exemple #1
0
 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);
 }