@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $condition = WebDriverExpectedCondition::visibilityOfElementLocated($elementSearch); |
79 | 79 | $this->webDriver->wait()->until($condition); |
80 | 80 | $otherElement = $this->findById('payment_us_other_payment_methods-head'); |
81 | - if ($otherElement->getAttribute('class')!='open') { |
|
81 | + if ($otherElement->getAttribute('class') != 'open') { |
|
82 | 82 | $otherElement->click(); |
83 | 83 | } |
84 | 84 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $this->webDriver->wait()->until($condition); |
88 | 88 | $this->assertTrue((bool) $condition, "PR4"); |
89 | 89 | $paylaterElement = $this->findById('payment_us_paylater-head'); |
90 | - if ($paylaterElement->getAttribute('class')!='open') { |
|
90 | + if ($paylaterElement->getAttribute('class') != 'open') { |
|
91 | 91 | $paylaterElement->click(); |
92 | 92 | } |
93 | 93 | |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | $this->webDriver->get($this->configuration['magentoUrl'].self::CHECKOUT_FOLDER); |
289 | 289 | $condition = WebDriverExpectedCondition::titleContains(self::CHECKOUT_TITLE); |
290 | 290 | $this->webDriver->wait()->until($condition); |
291 | - $this->assertTrue((bool)$condition, $this->configuration['magentoUrl'].self::CHECKOUT_FOLDER); |
|
291 | + $this->assertTrue((bool) $condition, $this->configuration['magentoUrl'].self::CHECKOUT_FOLDER); |
|
292 | 292 | } |
293 | 293 | |
294 | 294 | /** |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | $this->webDriver->wait()->until($condition); |
302 | 302 | $this->assertTrue((bool) $condition); |
303 | 303 | $this->assertSame( |
304 | - $this->configuration['firstname'] . ' ' . $this->configuration['lastname'], |
|
304 | + $this->configuration['firstname'].' '.$this->configuration['lastname'], |
|
305 | 305 | $this->findByClass('FieldsPreview-desc')->getText() |
306 | 306 | ); |
307 | 307 | } |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | { |
316 | 316 | $condition = WebDriverExpectedCondition::titleContains(self::PMT_TITLE); |
317 | 317 | $this->webDriver->wait(300)->until($condition, $this->webDriver->getCurrentURL()); |
318 | - $this->assertTrue((bool)$condition, "PR32"); |
|
318 | + $this->assertTrue((bool) $condition, "PR32"); |
|
319 | 319 | |
320 | 320 | SeleniumHelper::finishForm($this->webDriver); |
321 | 321 | } |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | $simulatorPrice = $simulatorElement->getAttribute('data-pmt-amount'); |
434 | 434 | $simulatorPrice = preg_replace('/[^\x{20}-\x{7F}]/u', '', $simulatorPrice); |
435 | 435 | $price = preg_replace('/[^\x{20}-\x{7F}]/u', '', $price); |
436 | - $this->assertContains($simulatorPrice, $price, json_encode(array($price,$simulatorPrice))); |
|
436 | + $this->assertContains($simulatorPrice, $price, json_encode(array($price, $simulatorPrice))); |
|
437 | 437 | |
438 | 438 | sleep(2); |
439 | 439 | $checkoutButton = WebDriverBy::cssSelector("#checkout-payment-method-load > .payment-methods > .payment-group > ._active > .payment-method-content > .actions-toolbar > .primary"); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * testMagentoOpen |
28 | - */ |
|
28 | + */ |
|
29 | 29 | public function testPaylaterMg21BasicTest() |
30 | 30 | { |
31 | 31 | $this->webDriver->get($this->configuration['magentoUrl']); |
@@ -59,7 +59,7 @@ |
||
59 | 59 | $this->assertNotEmpty($orderUrl); |
60 | 60 | |
61 | 61 | $orderArray = explode('/', $orderUrl); |
62 | - $magentoOrderId = (int)$orderArray['8']; |
|
62 | + $magentoOrderId = (int) $orderArray['8']; |
|
63 | 63 | $this->assertNotEmpty($magentoOrderId); |
64 | 64 | $notifyUrl = $this->configuration['magentoUrl'].self::NOTIFICATION_FOLDER.'?'.self::NOTIFICATION_PARAMETER.'='.$magentoOrderId; |
65 | 65 | $response = Request::post($notifyUrl)->expects('json')->send(); |