예제 #1
0
 public function testProcessStatusChangeError()
 {
     $orderId = 1;
     $status = Order::STATUS_ERROR;
     $this->orderProcessor->expects($this->once())->method('processHolded')->with($this->equalTo($orderId), $this->equalTo($status))->willReturn(true);
     $this->assertTrue($this->model->processStatusChange($orderId, $status));
 }
예제 #2
0
 /**
  * @inheritDoc
  */
 public function processNotification($payuplOrderId, $status, $amount)
 {
     /**
      * @var $result \Magento\Framework\Controller\Result\Raw
      */
     $newest = $this->transactionResource->checkIfNewestByPayuplOrderId($payuplOrderId);
     $this->orderProcessor->processStatusChange($payuplOrderId, $status, $amount, $newest);
     $result = $this->rawResultFactory->create();
     $result->setHttpResponseCode(200)->setContents('OK');
     return $result;
 }