/** * @test */ public function testCatalogProductSaveAfterMassAction() { $this->_fpc->save('product1', 'product1_cache_id', array(sha1('product_1'))); $this->_fpc->save('product2', 'product2_cache_id', array(sha1('product_2'))); $this->_fpc->save('product3', 'product3_cache_id', array(sha1('product_3'))); $event = new Mage_Index_Model_Event(); $productAction = new Mage_Catalog_Model_Product_Action(); $productAction->setProductIds(array(2, 3)); $event->setType('mass_action'); $event->setEntity('catalog_product'); $event->setDataObject($productAction); Mage::dispatchEvent('model_save_after', array('object' => $event)); $this->assertEquals('product1', $this->_fpc->load('product1_cache_id')); $this->assertFalse($this->_fpc->load('product2_cache_id')); $this->assertFalse($this->_fpc->load('product3_cache_id')); }