public function testCleanType() { /* Setup preconditions */ $this->_model->save('some data with layout cache tag', 'some_cache_id', array('LAYOUT_GENERAL_CACHE_TAG')); $this->_model->invalidateType('layout'); $this->_model->cleanType('layout'); $this->assertFalse($this->_model->load('some_cache_id')); $this->assertEquals(array(), $this->_model->getInvalidatedTypes()); }
public function testInvalidateType() { $this->_cacheFrontend->expects($this->once())->method('save')->with(serialize(array('test' => 1)), strtoupper(Mage_Core_Model_Cache::INVALIDATED_TYPES)); $this->_model->invalidateType('test'); }