@@ -2,4 +2,4 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Magium\Magento\Actions\Cart; |
| 4 | 4 | |
| 5 | -class AddToCartFailedException extends NoSuchElementException {} |
|
| 6 | 5 | \ No newline at end of file |
| 6 | +class AddToCartFailedException extends NoSuchElementException {} |
|
| 7 | 7 | \ No newline at end of file |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $this->testCase->assertElementDisplayed($this->theme->getContactUsSubmitXpath(), WebDriver::BY_XPATH); |
| 50 | 50 | |
| 51 | 51 | $this->webDriver->byXpath($this->theme->getContactUsNameXpath())->clear()->sendKeys( |
| 52 | - $this->customer->getFirstName() . ' ' . $this->customer->getLastName() |
|
| 52 | + $this->customer->getFirstName().' '.$this->customer->getLastName() |
|
| 53 | 53 | ); |
| 54 | 54 | |
| 55 | 55 | $this->webDriver->byXpath($this->theme->getContactUsEmailXpath())->clear()->sendKeys( |
@@ -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 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | self::TYPE_VISA => '4007000000027', |
| 20 | 20 | self::TYPE_AMERICAN_EXPRESS => '370000000000002', |
| 21 | 21 | self::TYPE_DISCOVER => '6011000000000012', |
| 22 | - self::TYPE_MASTERCARD => '5424000000000015', |
|
| 22 | + self::TYPE_MASTERCARD => '5424000000000015', |
|
| 23 | 23 | self::TYPE_UNKNOWN => '0000000000000000' |
| 24 | 24 | ]; |
| 25 | 25 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | protected function configureType($type) |
| 36 | 36 | { |
| 37 | 37 | if (!isset($this->ccNums[$type])) { |
| 38 | - throw new InvalidPaymentInformationException('Unknown payment type: ' . $type); |
|
| 38 | + throw new InvalidPaymentInformationException('Unknown payment type: '.$type); |
|
| 39 | 39 | } |
| 40 | 40 | $this->setCreditCardNumber($this->ccNums[$type]); |
| 41 | 41 | $this->setType($type); |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $this->expiryMonth = '1'; |
| 42 | 42 | } |
| 43 | 43 | if (!$this->expiryYear) { |
| 44 | - $this->expiryYear = date('Y', time() + (60 * 60 * 24 * 365 * 5)); // January plus 5 years |
|
| 44 | + $this->expiryYear = date('Y', time()+(60 * 60 * 24 * 365 * 5)); // January plus 5 years |
|
| 45 | 45 | } |
| 46 | 46 | if (!$this->cvv) { |
| 47 | 47 | $this->cvv = '123'; |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | $this->webDriver->byId('ccsave_cc_owner')->clear(); |
| 48 | 48 | $this->webDriver->byId('ccsave_cc_owner')->sendKeys( |
| 49 | - $this->customer->getBillingFirstName() . ' ' . $this->customer->getBillingLastName() |
|
| 49 | + $this->customer->getBillingFirstName().' '.$this->customer->getBillingLastName() |
|
| 50 | 50 | ); |
| 51 | 51 | |
| 52 | 52 | $select = new WebDriverSelect($this->webDriver->byId('ccsave_cc_type')); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | |
| 32 | 32 | foreach ($this->settings as $setting => $value) { |
| 33 | 33 | if ($value !== null) { // Skip items that are null. May help with test performance |
| 34 | - $this->set($this->section . '::' . $setting, $value); |
|
| 34 | + $this->set($this->section.'::'.$setting, $value); |
|
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | |
@@ -43,8 +43,8 @@ |
||
| 43 | 43 | { |
| 44 | 44 | $parts = explode('/', $setting); |
| 45 | 45 | $this->testCase->assertCount(2, $parts); |
| 46 | - $this->tab = $parts[0]; |
|
| 47 | - $this->section = $parts[1]; |
|
| 46 | + $this->tab = $parts[0]; |
|
| 47 | + $this->section = $parts[1]; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | protected function navigateToSystemConfiguration($setting) |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | const NAME = 'Saved CC'; |
| 9 | 9 | const ACTION = 'Admin\Configuration\PaymentMethods\SavedCC'; |
| 10 | 10 | |
| 11 | - protected $section = 'Payment Methods/' . self::NAME; |
|
| 11 | + protected $section = 'Payment Methods/'.self::NAME; |
|
| 12 | 12 | |
| 13 | 13 | protected $settings = [ |
| 14 | 14 | 'payment_ccsave_active' => 0, |