Exemple #1
0
 /**
  * test order status history add
  */
 public function testStatusHistoryAdd()
 {
     $statusHistory = $this->getMock('Magento\\Sales\\Service\\V1\\Data\\OrderStatusHistory', [], [], '', false);
     $this->orderStatusHistoryAddMock->expects($this->once())->method('invoke')->with(1, $statusHistory)->will($this->returnValue(true));
     $this->assertTrue($this->orderWrite->statusHistoryAdd(1, $statusHistory));
 }