@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -\Magium\Cli\CommandLoader::addCommandDir('Magium\Magento\Cli\Command', realpath(__DIR__ . '/lib/Magento/Cli/Command')); |
|
4 | -\Magium\Cli\Command\ListElements::addDirectory(realpath(__DIR__ . '/lib'), 'Magium'); |
|
5 | 3 | \ No newline at end of file |
4 | +\Magium\Cli\CommandLoader::addCommandDir('Magium\Magento\Cli\Command', realpath(__DIR__.'/lib/Magento/Cli/Command')); |
|
5 | +\Magium\Cli\Command\ListElements::addDirectory(realpath(__DIR__.'/lib'), 'Magium'); |
|
6 | 6 | \ No newline at end of file |
@@ -31,7 +31,7 @@ |
||
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
34 | - * @param $label |
|
34 | + * @param string $label |
|
35 | 35 | * @return WebDriverElement |
36 | 36 | */ |
37 | 37 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | ) |
47 | 47 | ); |
48 | 48 | } catch (\Exception $e) { |
49 | - throw new NoSuchShippingMethodException('Unable to find the shipping method: ' . $this->name); |
|
49 | + throw new NoSuchShippingMethodException('Unable to find the shipping method: '.$this->name); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | // Some products, such as virtual products, do not get shipped |
@@ -42,7 +42,7 @@ |
||
42 | 42 | |
43 | 43 | $this->form->execute($registerForNewsletter); |
44 | 44 | |
45 | - $submitElement = $this->webdriver->byXpath($this->theme->getRegisterSubmitXpath()); |
|
45 | + $submitElement = $this->webdriver->byXpath($this->theme->getRegisterSubmitXpath()); |
|
46 | 46 | |
47 | 47 | $submitElement->click(); |
48 | 48 |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * |
39 | 39 | * @see Magium\Magento\Actions\Checkout\Steps\CustomerBillingAddress |
40 | 40 | * |
41 | - * @param $element The name of the element |
|
41 | + * @param string $element The name of the element |
|
42 | 42 | */ |
43 | 43 | |
44 | 44 | public function bypassElement($element) |
@@ -88,6 +88,10 @@ discard block |
||
88 | 88 | return array_search($xpath, $this->bypass) === false; |
89 | 89 | } |
90 | 90 | |
91 | + /** |
|
92 | + * @param string $xpath |
|
93 | + * @param string $data |
|
94 | + */ |
|
91 | 95 | protected function sendData($xpath, $data) |
92 | 96 | { |
93 | 97 | if ($this->shouldProcess($xpath)) { |
@@ -62,6 +62,10 @@ |
||
62 | 62 | return false; |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param string $xpath |
|
67 | + * @param string $data |
|
68 | + */ |
|
65 | 69 | protected function sendData($xpath, $data) |
66 | 70 | { |
67 | 71 | if ($xpath) { |
@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | $this->webDriver->byId('sagepaydirectpro_cc_owner')->clear(); |
68 | 68 | $this->webDriver->byId('sagepaydirectpro_cc_owner')->sendKeys( |
69 | - $this->customer->getBillingFirstName() . ' ' . $this->customer->getBillingLastName() |
|
69 | + $this->customer->getBillingFirstName().' '.$this->customer->getBillingLastName() |
|
70 | 70 | ); |
71 | 71 | |
72 | 72 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $emailElement = $this->webdriver->byXpath($this->theme->getRegisterEmailXpath()); |
39 | 39 | $passwordElement = $this->webdriver->byXpath($this->theme->getRegisterPasswordXpath()); |
40 | 40 | $confirmElement = $this->webdriver->byXpath($this->theme->getRegisterConfirmPasswordXpath()); |
41 | - $registerElement = $this->webdriver->byXpath($this->theme->getRegisterNewsletterXpath()); |
|
41 | + $registerElement = $this->webdriver->byXpath($this->theme->getRegisterNewsletterXpath()); |
|
42 | 42 | |
43 | 43 | $firstnameElement->sendKeys($this->customerIdentity->getFirstName()); |
44 | 44 | $lastnameElement->sendKeys($this->customerIdentity->getLastName()); |
@@ -36,9 +36,9 @@ |
||
36 | 36 | { |
37 | 37 | |
38 | 38 | usleep(500000); // Give the UI some time to update |
39 | - $xpath .= '/descendant::' . $this->themeConfiguration->getNavigationChildXPathSelector($path); |
|
39 | + $xpath .= '/descendant::'.$this->themeConfiguration->getNavigationChildXPathSelector($path); |
|
40 | 40 | |
41 | - $element = $this->webdriver->byXpath($xpath . '/a'); |
|
41 | + $element = $this->webdriver->byXpath($xpath.'/a'); |
|
42 | 42 | |
43 | 43 | $this->execute($element); |
44 | 44 |