Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function testCartDiscount() |
||
11 | { |
||
12 | $cart = new Cart('USD'); |
||
13 | |||
14 | $cartDiscount = new TotalPriceThresholdDiscount('Discount description', $cart, [ |
||
15 | 'treshold' => 14, |
||
16 | 'discount' => 0.1 |
||
17 | ]); |
||
18 | |||
19 | $this->assertSame($cartDiscount->getDescription(), 'Discount description'); |
||
20 | } |
||
21 | } |