Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function thePageShouldContainThePrice($arg1, $arg2) |
||
23 | { |
||
24 | |||
25 | $this->visitPath($arg1); |
||
26 | |||
27 | /** @var \Behat\Mink\Element\NodeElement $price */ |
||
28 | $prices = $this->getSession()->getPage()->findAll('xpath', '//*[@id="product-price-21606"]/span'); |
||
29 | |||
30 | foreach ($prices as $price) { |
||
31 | echo "Found value: " . $price->getValue() . PHP_EOL; |
||
32 | PHPUnit_Framework_Assert::assertSame($arg2, $price->getValue()); |
||
33 | } |
||
34 | } |
||
35 | } |
||
36 |