| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function shouldCallDoPayment() |
||
| 38 | { |
||
| 39 | $apiMock = $this->createMock(Api::class); |
||
| 40 | $action = new CaptureAction(); |
||
| 41 | $gateway = $this->createGatewayMock(); |
||
| 42 | $apiMock |
||
| 43 | ->expects($this->once()) |
||
| 44 | ->method('doPayment') |
||
| 45 | ; |
||
| 46 | $action->setGateway($gateway); |
||
| 47 | $action->setApi($apiMock); |
||
| 48 | $action->execute(new Capture([])); |
||
| 49 | } |
||
| 59 | } |