Example #1
0
 public function testRefundCreateSuccess()
 {
     $orderId = '123456';
     $description = 'Description';
     $amount = '100';
     $result = $this->getResultMock();
     $this->refundHelper->expects($this->once())->method('validateCreate')->with($this->equalTo($orderId), $this->equalTo($description), $this->equalTo($amount))->willReturn(true);
     $this->refundHelper->expects($this->once())->method('create')->with($this->equalTo($orderId), $this->equalTo($description), $this->equalTo($amount))->willReturn($result);
     $this->assertTrue($this->model->refundCreate($orderId, $description, $amount));
 }