Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function hasTitleAndContainPrice($arg1, $arg2) |
||
36 | { |
||
37 | |||
38 | /** @var \Behat\Mink\Element\NodeElement $title */ |
||
39 | $title = $this->getSession()->getPage()->find('css', 'title'); |
||
40 | PHPUnit_Framework_Assert::assertSame($arg1, $title->getText()); |
||
41 | |||
42 | /** @var \Behat\Mink\Element\NodeElement $price */ |
||
43 | $price = $this->getSession()->getPage()->find('xpath', '//*[@class="price"]'); |
||
44 | PHPUnit_Framework_Assert::assertSame($arg2, $price->getText()); |
||
45 | } |
||
46 | } |
||
47 |