| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | */ |
||
| 23 | public function thePageShouldReturnStatusHasTitleAndContainPrice($arg1, $arg2, $arg3, $arg4) |
||
| 24 | { |
||
| 25 | |||
| 26 | $this->visitPath($arg1); |
||
| 27 | |||
| 28 | PHPUnit_Framework_Assert::assertSame((integer) $arg2, $this->getSession()->getStatusCode()); |
||
| 29 | |||
| 30 | /** @var \Behat\Mink\Element\NodeElement $title */ |
||
| 31 | $title = $this->getSession()->getPage()->find('css', 'title'); |
||
| 32 | PHPUnit_Framework_Assert::assertSame($arg3, $title->getText()); |
||
| 33 | |||
| 34 | /** @var \Behat\Mink\Element\NodeElement $price */ |
||
| 35 | $price = $this->getSession()->getPage()->find('xpath', '//*[@class="price"]'); |
||
| 39 |