| Total Complexity | 2 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class BuyPromotedTest extends AbstractBuy |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var String $orderUrl |
||
| 18 | */ |
||
| 19 | public $orderUrl; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Test Buy Promoted |
||
| 23 | */ |
||
| 24 | public function testBuyPromoted() |
||
| 25 | { |
||
| 26 | $this->prepareProductAndCheckout(true); |
||
| 27 | $this->quit(); |
||
| 28 | die; |
||
|
|
|||
| 29 | $this->login(); |
||
| 30 | $this->fillShippingMethod(); |
||
| 31 | $this->fillPaymentMethod(); |
||
| 32 | |||
| 33 | // get cart total price |
||
| 34 | // $button = WebDriverBy::xpath("//td[@class='main']/strong[1]"); |
||
| 35 | // $condition = WebDriverExpectedCondition::visibilityOfElementLocated($button); |
||
| 36 | // $this->waitUntil($condition); |
||
| 37 | // $cartPrice = $this->findByXpath("//td[@class='main']/strong[1]")->getText(); |
||
| 38 | |||
| 39 | |||
| 40 | // -------------------- |
||
| 41 | $this->goToPagantis(); |
||
| 42 | $this->verifyPagantis(); |
||
| 43 | $this->commitPurchase(); |
||
| 44 | $this->checkPurchaseReturn(self::CORRECT_PURCHASE_MESSAGE); |
||
| 45 | $this->quit(); |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * |
||
| 50 | */ |
||
| 51 | protected function checkPromoted() |
||
| 56 | |||
| 57 | } |
||
| 59 |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.