1 | <?php |
||
19 | class CartSummaryPage extends SymfonyPage implements CartSummaryPageInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $elements = [ |
||
25 | 'grand total' => '#cart-summary td:contains("Grand total")', |
||
26 | 'promotion total' => '#cart-summary td:contains("Promotion total")', |
||
27 | 'shipping total' => '#cart-summary td:contains("Shipping total")', |
||
28 | 'tax total' => '#cart-summary td:contains("Tax total")', |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function getGrandTotal() |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function getTaxTotal() |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function getShippingTotal() |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function getPromotionTotal() |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function getItemRegularPrice($productName) |
||
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | public function getItemDiscountPrice($productName) |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | */ |
||
96 | public function isItemDiscounted($productName) |
||
102 | |||
103 | /** |
||
104 | * {@inheritdoc} |
||
105 | */ |
||
106 | public function removeProduct($productName) |
||
111 | |||
112 | /** |
||
113 | * {@inheritdoc} |
||
114 | */ |
||
115 | public function changeQuantity($productName, $quantity) |
||
123 | |||
124 | /** |
||
125 | * {@inheritdoc} |
||
126 | */ |
||
127 | protected function getRouteName() |
||
131 | } |
||
132 |