public function testProductAfterSafeUpdate() { $this->markTestIncomplete('Include all cases'); $this->_setupProductObserverMock(); $helperMock = $this->mockHelper('xcom_xfabric', array('send')); Mage::register('xcom_product_changed', true); //com.x.pim.v1/ProductCreation/ProductCreated $helperMock->expects($this->once())->method('send')->with('com.x.pim.v1/ProductUpdate/ProductUpdated', array('product' => $this->_productMock)); $retObj = $this->_object->productAfterSave($this->_observerMock); $this->assertSame($this->_object, $retObj); }