public function testProcessStatusChangeCompleted() { $orderId = 1; $status = Order::STATUS_COMPLETED; $this->orderProcessor->expects($this->once())->method('processCompleted')->with($this->equalTo($orderId), $this->equalTo($status))->willReturn(true); $this->assertTrue($this->model->processStatusChange($orderId, $status)); }
/** * @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); return $result; }