BuyRegisteredTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 31
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testBuyRegistered() 0 21 1
1
<?php
2
3
namespace Test\Buy;
4
5
use Facebook\WebDriver\WebDriverBy;
6
use Facebook\WebDriver\WebDriverExpectedCondition;
7
8
/**
9
 * Class BuyRegisteredTest
10
 * @package Test\Buy
11
 *
12
 * @group oscommerce-buy-registered
13
 */
14
class BuyRegisteredTest extends AbstractBuy
15
{
16
    /**
17
     * @var String $orderUrl
18
     */
19
    public $orderUrl;
20
21
    /**
22
     * Test Buy Registered
23
     */
24
    public function testBuyRegistered()
25
    {
26
        $this->prepareProductAndCheckout(false);
27
        $this->login();
28
        $this->fillShippingMethod();
29
        $this->fillPaymentMethod();
30
31
        // get cart total price
32
        // $button = WebDriverBy::xpath("//td[@class='main']/strong[1]");
33
        // $condition = WebDriverExpectedCondition::visibilityOfElementLocated($button);
34
        // $this->waitUntil($condition);
35
        // $cartPrice = $this->findByXpath("//td[@class='main']/strong[1]")->getText();
36
37
38
        // --------------------
39
        $this->goToPagantis();
40
        $this->verifyPagantis();
41
        $this->commitPurchase();
42
        $this->checkPurchaseReturn(self::CORRECT_PURCHASE_MESSAGE);
43
        // $this->makeValidation();
44
        $this->quit();
45
    }
46
}
47