| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | function it_completes_payment( |
||
| 30 | StateMachineFactoryInterface $stateMachineFactory, |
||
| 31 | PaymentInterface $payment, |
||
| 32 | StateMachine $stateMachine |
||
| 33 | ): void { |
||
| 34 | $stateMachineFactory->get($payment, PaymentTransitions::GRAPH)->willReturn($stateMachine); |
||
| 35 | $stateMachine->apply(PaymentTransitions::TRANSITION_COMPLETE)->shouldBeCalled(); |
||
| 36 | |||
| 37 | $this->complete($payment); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |