Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function extract() |
||
28 | { |
||
29 | $theme = $this->theme; |
||
30 | if ($theme instanceof AbstractThemeConfiguration) { |
||
31 | $this->testCase->assertElementDisplayed($theme->getOrderNumberExtractorXpath(), AbstractTestCase::BY_XPATH); |
||
32 | $element = $this->webDriver->byXpath($theme->getOrderNumberExtractorXpath()); |
||
33 | $text = $element->getText(); |
||
34 | $orderId = preg_replace('/\D/', '', $text); |
||
35 | $this->values['order-id'] = $orderId; |
||
36 | return true; |
||
37 | } else { |
||
38 | return false; |
||
39 | } |
||
40 | } |
||
41 | |||
53 | } |