Exemple #1
0
 public function testOrderAfterCreate()
 {
     $this->_setupObserverMock();
     $helperMock = $this->mockHelper('xcom_xfabric', array('send'));
     $helperMock->expects($this->once())->method('send')->with('order/created', array('order' => $this->_orderMock));
     $this->assertNull(Mage::registry("order_sent"), "Don't expect order_sent to be set yet");
     $retObj = $this->_object->orderAfterCreate($this->_observerMock);
     $this->assertSame($this->_object, $retObj);
 }