Example #1
0
 public function testCapturePaid()
 {
     $this->model->setIsPaid(true);
     $this->orderMock->expects($this->any())->method('getPayment')->willReturn($this->paymentMock);
     $this->paymentMock->expects($this->any())->method('capture')->with($this->model)->willReturnSelf();
     $this->mockPay();
     $this->assertEquals($this->model, $this->model->capture());
 }