Esempio n. 1
0
 public function testProcessHoldedSuccess()
 {
     $payuplOrderId = 'ABC';
     $status = 'WAITING';
     $order = $this->getOrderMock();
     $this->orderHelper->expects($this->once())->method('loadOrderByPayuplOrderId')->willReturn($order);
     $this->orderHelper->expects($this->once())->method('setHoldedOrderStatus')->with($this->equalTo($order), $this->equalTo($status));
     $this->transactionService->expects($this->once())->method('updateStatus')->with($this->equalTo($payuplOrderId), $this->equalTo($status), $this->equalTo(true));
     $this->model->processHolded($payuplOrderId, $status);
 }