@@ -45,7 +45,7 @@ |
||
| 45 | 45 | $passwordElement = $this->webdriver->byXpath($this->theme->getRegisterPasswordXpath()); |
| 46 | 46 | $confirmElement = $this->webdriver->byXpath($this->theme->getRegisterConfirmPasswordXpath()); |
| 47 | 47 | $submitElement = $this->webdriver->byXpath($this->theme->getRegisterSubmitXpath()); |
| 48 | - $registerElement = $this->webdriver->byXpath($this->theme->getRegisterNewsletterXpath()); |
|
| 48 | + $registerElement = $this->webdriver->byXpath($this->theme->getRegisterNewsletterXpath()); |
|
| 49 | 49 | |
| 50 | 50 | $firstnameElement->sendKeys($this->customerIdentity->getFirstName()); |
| 51 | 51 | $lastnameElement->sendKeys($this->customerIdentity->getLastName()); |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | return; |
| 60 | 60 | } |
| 61 | 61 | // If we're logged in we don't need to do the login process. Continue along. |
| 62 | - } catch (NoSuchElementException $e ) { |
|
| 62 | + } catch (NoSuchElementException $e) { |
|
| 63 | 63 | return; |
| 64 | 64 | } |
| 65 | 65 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | CustomerLogin $loginNavigator |
| 17 | 17 | |
| 18 | 18 | ) { |
| 19 | - $this->login = $login; |
|
| 19 | + $this->login = $login; |
|
| 20 | 20 | $this->loginNavigator = $loginNavigator; |
| 21 | 21 | } |
| 22 | 22 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | { |
| 13 | 13 | const IDENTITY = 'Customer'; |
| 14 | 14 | |
| 15 | - public $emailAddress = '[email protected]'; |
|
| 15 | + public $emailAddress = '[email protected]'; |
|
| 16 | 16 | |
| 17 | 17 | public $billingFirstName = 'Kevin'; |
| 18 | 18 | public $billingLastName = 'Schroeder'; |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | AbstractThemeConfiguration $themeConfiguration |
| 18 | 18 | ) |
| 19 | 19 | { |
| 20 | - $this->themeConfiguration = $themeConfiguration; |
|
| 20 | + $this->themeConfiguration = $themeConfiguration; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | public function assert() |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | AbstractThemeConfiguration $themeConfiguration |
| 16 | 16 | ) |
| 17 | 17 | { |
| 18 | - $this->themeConfiguration = $themeConfiguration; |
|
| 18 | + $this->themeConfiguration = $themeConfiguration; |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | public function assert() |
@@ -48,9 +48,9 @@ |
||
| 48 | 48 | $test->setCategoryPath($input->getArgument('category')); |
| 49 | 49 | $test->run(); |
| 50 | 50 | $products = $test->getProductNames(); |
| 51 | - $output->writeln('Found ' . count($products) . ' products in ' . $input->getArgument('category')); |
|
| 51 | + $output->writeln('Found '.count($products).' products in '.$input->getArgument('category')); |
|
| 52 | 52 | foreach ($products as $product) { |
| 53 | - $output->writeln("\t" . trim($product)); |
|
| 53 | + $output->writeln("\t".trim($product)); |
|
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | |
@@ -12,11 +12,11 @@ |
||
| 12 | 12 | $origClass = $class; |
| 13 | 13 | |
| 14 | 14 | if (!class_exists($class)) { |
| 15 | - $class = $origClass . '\ThemeConfiguration'; |
|
| 15 | + $class = $origClass.'\ThemeConfiguration'; |
|
| 16 | 16 | if (!class_exists($class)) { |
| 17 | - $class = 'Magium\Magento\Themes\\' . $origClass . '\ThemeConfiguration'; |
|
| 17 | + $class = 'Magium\Magento\Themes\\'.$origClass.'\ThemeConfiguration'; |
|
| 18 | 18 | if (!class_exists($class)) { |
| 19 | - throw new NotFoundException('Could not resolve the theme class for: ' . $origClass); |
|
| 19 | + throw new NotFoundException('Could not resolve the theme class for: '.$origClass); |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | public function extract() |
| 33 | 33 | { |
| 34 | 34 | if (!$this->webDriver->elementExists($this->theme->getAddToCartXpath(), 'byXpath')) { |
| 35 | - throw new NoSuchElementException('Could not find the simple add to cart element with the Xpath: ' . $this->theme->getAddToCartXpath()); |
|
| 35 | + throw new NoSuchElementException('Could not find the simple add to cart element with the Xpath: '.$this->theme->getAddToCartXpath()); |
|
| 36 | 36 | }; |
| 37 | 37 | |
| 38 | 38 | $elements = $this->webDriver->findElements(WebDriverBy::xpath($this->theme->getAddToCartXpath())); |