| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function assertSelector($selector, $includeCurrency = false) |
||
| 33 | { |
||
| 34 | $element = $this->webDriver->byXpath($this->theme->getProductPagePriceXpath()); |
||
| 35 | $price = trim($element->getText()); |
||
| 36 | if (!$includeCurrency) { |
||
| 37 | $price = preg_replace('/^\D+/', '', $price); |
||
| 38 | } |
||
| 39 | AbstractTestCase::assertEquals($selector, $price); |
||
| 40 | } |
||
| 41 | |||
| 43 |