Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 13 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
43 | public function testSetPriceFormat() |
||
44 | { |
||
45 | $priceFormat = $this->getMockBuilder(PriceFormat::class)->getMock(); |
||
46 | |||
47 | $priceFormat->expects($this->any()) |
||
48 | ->method('formatPrice') |
||
49 | ->willReturn(3.40); |
||
50 | |||
51 | $shipping = new Shipping($this->shippingInput); |
||
52 | $shipping->setPriceFormat($priceFormat); |
||
53 | |||
54 | $this->assertSame(3.40, $shipping->getCost()); |
||
55 | } |
||
56 | } |
||
57 |