@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Magium\Magento\Actions\Admin\Configuration; |
| 4 | 4 | |
| 5 | -use Facebook\WebDriver\WebDriverElement; |
|
| 6 | -use Facebook\WebDriver\WebDriverSelect; |
|
| 7 | 5 | use Magium\Magento\AbstractMagentoTestCase; |
| 8 | 6 | use Magium\Magento\Navigators\Admin\SystemConfiguration; |
| 9 | 7 | use Magium\Magento\Themes\Admin\ThemeConfiguration; |
@@ -6,8 +6,6 @@ |
||
| 6 | 6 | use Magium\Magento\Actions\Checkout\Steps\LogInCustomer; |
| 7 | 7 | use Magium\Magento\Actions\Checkout\Steps\PaymentMethod; |
| 8 | 8 | use Magium\Magento\Actions\Checkout\Steps\PlaceOrder; |
| 9 | -use Magium\Magento\Actions\Checkout\Steps\ReviewOrder; |
|
| 10 | -use Magium\Magento\Actions\Checkout\Steps\SelectCustomerCheckout; |
|
| 11 | 9 | use Magium\Magento\Actions\Checkout\Steps\ShippingAddress; |
| 12 | 10 | use Magium\Magento\Actions\Checkout\Steps\ShippingMethod; |
| 13 | 11 | use Magium\Magento\Extractors\Checkout\CartSummary; |
@@ -5,7 +5,6 @@ discard block |
||
| 5 | 5 | use Magium\Magento\Actions\Checkout\Steps\BillingAddress; |
| 6 | 6 | use Magium\Magento\Actions\Checkout\Steps\PaymentMethod; |
| 7 | 7 | use Magium\Magento\Actions\Checkout\Steps\PlaceOrder; |
| 8 | -use Magium\Magento\Actions\Checkout\Steps\ReviewOrder; |
|
| 9 | 8 | use Magium\Magento\Actions\Checkout\Steps\SelectGuestCheckout; |
| 10 | 9 | use Magium\Magento\Actions\Checkout\Steps\ShippingAddress; |
| 11 | 10 | use Magium\Magento\Actions\Checkout\Steps\ShippingMethod; |
@@ -14,7 +13,6 @@ discard block |
||
| 14 | 13 | use Magium\Magento\Navigators\Checkout\Checkout; |
| 15 | 14 | use Magium\Magento\Navigators\Checkout\CheckoutStart; |
| 16 | 15 | use Magium\Magento\Themes\OnePageCheckout\AbstractThemeConfiguration; |
| 17 | -use Magium\Magento\Themes\OnePageCheckout\ThemeConfiguration as OnePageCheckoutTheme; |
|
| 18 | 16 | |
| 19 | 17 | class GuestCheckout extends AbstractCheckout |
| 20 | 18 | { |
@@ -6,8 +6,6 @@ discard block |
||
| 6 | 6 | use Magium\Magento\Actions\Checkout\Steps\NewCustomerPassword; |
| 7 | 7 | use Magium\Magento\Actions\Checkout\Steps\PaymentMethod; |
| 8 | 8 | use Magium\Magento\Actions\Checkout\Steps\PlaceOrder; |
| 9 | -use Magium\Magento\Actions\Checkout\Steps\ReviewOrder; |
|
| 10 | -use Magium\Magento\Actions\Checkout\Steps\SelectCustomerCheckout; |
|
| 11 | 9 | use Magium\Magento\Actions\Checkout\Steps\SelectRegisterNewCustomerCheckout; |
| 12 | 10 | use Magium\Magento\Actions\Checkout\Steps\ShippingAddress; |
| 13 | 11 | use Magium\Magento\Actions\Checkout\Steps\ShippingMethod; |
@@ -16,7 +14,6 @@ discard block |
||
| 16 | 14 | use Magium\Magento\Navigators\Checkout\Checkout; |
| 17 | 15 | use Magium\Magento\Navigators\Checkout\CheckoutStart; |
| 18 | 16 | use Magium\Magento\Themes\OnePageCheckout\AbstractThemeConfiguration; |
| 19 | -use Magium\Magento\Themes\OnePageCheckout\ThemeConfiguration as OnePageCheckoutTheme; |
|
| 20 | 17 | |
| 21 | 18 | class RegisterNewCustomerCheckout extends AbstractCheckout |
| 22 | 19 | { |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Magium\Magento\Extractors\Catalog\LayeredNavigation\FilterTypes; |
| 4 | 4 | |
| 5 | -use Facebook\WebDriver\WebDriverBy; |
|
| 6 | -use Facebook\WebDriver\WebDriverElement; |
|
| 7 | 5 | use Magium\Magento\Extractors\Catalog\LayeredNavigation\FilterValue; |
| 8 | 6 | use Magium\Magento\Extractors\Catalog\LayeredNavigation\UnparseableValueException; |
| 9 | 7 | |
@@ -15,7 +15,9 @@ |
||
| 15 | 15 | { |
| 16 | 16 | $xpath = new \DOMXPath($this->document); |
| 17 | 17 | $xpathQuery = $this->theme->getLayeredNavigationSwatchAppliesXpath($this->title); |
| 18 | - if (!$xpathQuery) return false; |
|
| 18 | + if (!$xpathQuery) { |
|
| 19 | + return false; |
|
| 20 | + } |
|
| 19 | 21 | $elements = $xpath->query($xpathQuery); |
| 20 | 22 | return $elements->length > 0; |
| 21 | 23 | } |
@@ -57,7 +57,9 @@ |
||
| 57 | 57 | $attributes = $this->option->getOptionNames(); |
| 58 | 58 | foreach ($attributes as $attributeName) { |
| 59 | 59 | $elementOption = $this->option->getOption($attributeName); |
| 60 | - if (!$elementOption) continue; |
|
| 60 | + if (!$elementOption) { |
|
| 61 | + continue; |
|
| 62 | + } |
|
| 61 | 63 | // The options are sorted by their entry into the setOption() method. Need to have it ordered by the page order |
| 62 | 64 | |
| 63 | 65 | if (!$elementOption instanceof Option) { |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Magium\Actions\StaticActionInterface; |
| 6 | 6 | use Magium\Magento\Extractors\Catalog\Cart\AddToCart; |
| 7 | 7 | use Magium\Magento\Extractors\Catalog\Product\ConfigurableProductOptions; |
| 8 | -use Magium\Magento\Extractors\Catalog\Product\Swatch; |
|
| 9 | 8 | use Magium\Magento\Extractors\Catalog\Product\Option; |
| 10 | 9 | use Magium\Magento\Extractors\Catalog\Product\SwatchValue; |
| 11 | 10 | use Magium\Magento\Extractors\Catalog\Product\Value; |
@@ -44,10 +44,14 @@ |
||
| 44 | 44 | foreach ($this->steps as $step) { |
| 45 | 45 | if ($step instanceof StepInterface) { |
| 46 | 46 | $continue = $step->execute(); |
| 47 | - if (!$continue) return; |
|
| 47 | + if (!$continue) { |
|
| 48 | + return; |
|
| 49 | + } |
|
| 48 | 50 | |
| 49 | 51 | $continue = $step->nextAction(); |
| 50 | - if (!$continue) return; |
|
| 52 | + if (!$continue) { |
|
| 53 | + return; |
|
| 54 | + } |
|
| 51 | 55 | } |
| 52 | 56 | } |
| 53 | 57 | } |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Magium\Magento\Actions\Admin\Widget; |
| 4 | 4 | |
| 5 | 5 | use Magium\Actions\ConfigurableActionInterface; |
| 6 | -use Magium\InvalidInstructionException; |
|
| 7 | 6 | use Magium\Magento\Themes\Admin\ThemeConfiguration; |
| 8 | 7 | use Magium\WebDriver\ExpectedCondition; |
| 9 | 8 | use Magium\WebDriver\WebDriver; |