Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | function it_should_generate_a_description_string(PaymentInterface $payment, OrderInterface $order) |
||
35 | { |
||
36 | $order->getItems()->willReturn(new ArrayCollection([new OrderItem(), new OrderItem()])); |
||
37 | $order->getTotal()->willReturn(10000); |
||
38 | $payment->getOrder()->willReturn($order); |
||
39 | |||
40 | $this->getPaymentDescription($payment)->shouldReturn('Payment contains 2 items for a total of 100'); |
||
41 | } |
||
42 | } |
||
43 |