@@ -166,9 +166,9 @@ |
||
| 166 | 166 | |
| 167 | 167 | $body = array('PAGANTIS_TITLE' => 'changed'); |
| 168 | 168 | $response = Request::post($configUrl) |
| 169 | - ->body($body, Mime::FORM) |
|
| 170 | - ->expectsJSON() |
|
| 171 | - ->send(); |
|
| 169 | + ->body($body, Mime::FORM) |
|
| 170 | + ->expectsJSON() |
|
| 171 | + ->send(); |
|
| 172 | 172 | $title = $response->body->PAGANTIS_TITLE; |
| 173 | 173 | $this->assertEquals('changed', $title, "PR62=>".$configUrl." = ".$title); |
| 174 | 174 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * testMagentoOpen |
| 28 | - */ |
|
| 28 | + */ |
|
| 29 | 29 | public function testpagantisMg21BasicTest() |
| 30 | 30 | { |
| 31 | 31 | $this->webDriver->get($this->configuration['magentoUrl']); |
@@ -234,9 +234,9 @@ discard block |
||
| 234 | 234 | if ($promotedProduct == 'true') { |
| 235 | 235 | $promotedAmount+=$product->getAmount()*$item->getQty(); |
| 236 | 236 | $promotedMessage = 'Promoted Item: ' . $item->getName() . |
| 237 | - ' Price: ' . $item->getPrice() . |
|
| 238 | - ' Qty: ' . $item->getQty() . |
|
| 239 | - ' Item ID: ' . $item->getItemId(); |
|
| 237 | + ' Price: ' . $item->getPrice() . |
|
| 238 | + ' Qty: ' . $item->getQty() . |
|
| 239 | + ' Item ID: ' . $item->getItemId(); |
|
| 240 | 240 | $metadataOrder->addMetadata('promotedProduct', $promotedMessage); |
| 241 | 241 | } |
| 242 | 242 | } |
@@ -401,9 +401,9 @@ discard block |
||
| 401 | 401 | $magentoVersion = $this->productMetadataInterface->getVersion(); |
| 402 | 402 | $moduleInfo = $this->moduleList->getOne('Pagantis_Pagantis'); |
| 403 | 403 | return array( 'magento' => $magentoVersion, |
| 404 | - 'pagantis' => $moduleInfo['setup_version'], |
|
| 405 | - 'php' => phpversion(), |
|
| 406 | - 'curl' => $curlVersion); |
|
| 404 | + 'pagantis' => $moduleInfo['setup_version'], |
|
| 405 | + 'php' => phpversion(), |
|
| 406 | + 'curl' => $curlVersion); |
|
| 407 | 407 | } |
| 408 | 408 | |
| 409 | 409 | /** |
@@ -20,20 +20,20 @@ |
||
| 20 | 20 | * @var array $defaultConfigs |
| 21 | 21 | */ |
| 22 | 22 | public $defaultConfigs = array('PAGANTIS_TITLE'=>'Instant Financing', |
| 23 | - 'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'pgSDK.simulator.types.SIMPLE', |
|
| 24 | - 'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'pgSDK.simulator.skins.BLUE', |
|
| 25 | - 'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons', |
|
| 26 | - 'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3, |
|
| 27 | - 'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12, |
|
| 28 | - 'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default', |
|
| 29 | - 'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'pgSDK.simulator.positions.INNER', |
|
| 30 | - 'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'=>'default', |
|
| 31 | - 'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'default', |
|
| 32 | - 'PAGANTIS_FORM_DISPLAY_TYPE'=>0, |
|
| 33 | - 'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1, |
|
| 34 | - 'PAGANTIS_URL_OK'=>'', |
|
| 35 | - 'PAGANTIS_URL_KO'=>'', |
|
| 36 | - 'PAGANTIS_TITLE_EXTRA' => 'Pay up to 12 comfortable installments with Pagantis. Completely online and sympathetic request, and the answer is immediate!' |
|
| 23 | + 'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'pgSDK.simulator.types.SIMPLE', |
|
| 24 | + 'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'pgSDK.simulator.skins.BLUE', |
|
| 25 | + 'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons', |
|
| 26 | + 'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3, |
|
| 27 | + 'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12, |
|
| 28 | + 'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default', |
|
| 29 | + 'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'pgSDK.simulator.positions.INNER', |
|
| 30 | + 'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'=>'default', |
|
| 31 | + 'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'default', |
|
| 32 | + 'PAGANTIS_FORM_DISPLAY_TYPE'=>0, |
|
| 33 | + 'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1, |
|
| 34 | + 'PAGANTIS_URL_OK'=>'', |
|
| 35 | + 'PAGANTIS_URL_KO'=>'', |
|
| 36 | + 'PAGANTIS_TITLE_EXTRA' => 'Pay up to 12 comfortable installments with Pagantis. Completely online and sympathetic request, and the answer is immediate!' |
|
| 37 | 37 | ); |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -20,20 +20,20 @@ |
||
| 20 | 20 | * @var array $defaultConfigs |
| 21 | 21 | */ |
| 22 | 22 | public $defaultConfigs = array('PAGANTIS_TITLE'=>'Instant Financing', |
| 23 | - 'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'pgSDK.simulator.types.SIMPLE', |
|
| 24 | - 'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'pgSDK.simulator.skins.BLUE', |
|
| 25 | - 'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons', |
|
| 26 | - 'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3, |
|
| 27 | - 'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12, |
|
| 28 | - 'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default', |
|
| 29 | - 'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'pgSDK.simulator.positions.INNER', |
|
| 30 | - 'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'=>'default', |
|
| 31 | - 'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'default', |
|
| 32 | - 'PAGANTIS_FORM_DISPLAY_TYPE'=>0, |
|
| 33 | - 'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1, |
|
| 34 | - 'PAGANTIS_URL_OK'=>'', |
|
| 35 | - 'PAGANTIS_URL_KO'=>'', |
|
| 36 | - 'PAGANTIS_TITLE_EXTRA' => 'Pay up to 12 comfortable installments with Pagantis. Completely online and sympathetic request, and the answer is immediate!' |
|
| 23 | + 'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'pgSDK.simulator.types.SIMPLE', |
|
| 24 | + 'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'pgSDK.simulator.skins.BLUE', |
|
| 25 | + 'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons', |
|
| 26 | + 'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3, |
|
| 27 | + 'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12, |
|
| 28 | + 'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default', |
|
| 29 | + 'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'pgSDK.simulator.positions.INNER', |
|
| 30 | + 'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'=>'default', |
|
| 31 | + 'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'default', |
|
| 32 | + 'PAGANTIS_FORM_DISPLAY_TYPE'=>0, |
|
| 33 | + 'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1, |
|
| 34 | + 'PAGANTIS_URL_OK'=>'', |
|
| 35 | + 'PAGANTIS_URL_KO'=>'', |
|
| 36 | + 'PAGANTIS_TITLE_EXTRA' => 'Pay up to 12 comfortable installments with Pagantis. Completely online and sympathetic request, and the answer is immediate!' |
|
| 37 | 37 | ); |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | Table::TYPE_TIMESTAMP, |
| 112 | 112 | null, |
| 113 | 113 | array('nullable'=>false, |
| 114 | - 'default'=>Table::TIMESTAMP_INIT) |
|
| 114 | + 'default'=>Table::TIMESTAMP_INIT) |
|
| 115 | 115 | ); |
| 116 | 116 | return $dbConnection->createTable($table); |
| 117 | 117 | } |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | Table::TYPE_TIMESTAMP, |
| 112 | 112 | null, |
| 113 | 113 | array('nullable'=>false, |
| 114 | - 'default'=>Table::TIMESTAMP_INIT) |
|
| 114 | + 'default'=>Table::TIMESTAMP_INIT) |
|
| 115 | 115 | ); |
| 116 | 116 | return $dbConnection->createTable($table); |
| 117 | 117 | } |
@@ -531,17 +531,17 @@ |
||
| 531 | 531 | } |
| 532 | 532 | |
| 533 | 533 | $this->magentoOrder->addStatusHistoryComment($metadataInfo) |
| 534 | - ->setIsCustomerNotified(false) |
|
| 535 | - ->setEntityName('order') |
|
| 536 | - ->save(); |
|
| 534 | + ->setIsCustomerNotified(false) |
|
| 535 | + ->setEntityName('order') |
|
| 536 | + ->save(); |
|
| 537 | 537 | |
| 538 | 538 | $comment = 'pagantisOrderId: '.$this->pagantisOrder->getId(). ' ' . |
| 539 | - 'pagantisOrderStatus: '.$this->pagantisOrder->getStatus(). ' ' . |
|
| 540 | - 'via: '.$this->origin; |
|
| 539 | + 'pagantisOrderStatus: '.$this->pagantisOrder->getStatus(). ' ' . |
|
| 540 | + 'via: '.$this->origin; |
|
| 541 | 541 | $this->magentoOrder->addStatusHistoryComment($comment) |
| 542 | - ->setIsCustomerNotified(false) |
|
| 543 | - ->setEntityName('order') |
|
| 544 | - ->save(); |
|
| 542 | + ->setIsCustomerNotified(false) |
|
| 543 | + ->setEntityName('order') |
|
| 544 | + ->save(); |
|
| 545 | 545 | |
| 546 | 546 | if ($this->magentoOrderId == '') { |
| 547 | 547 | throw new UnknownException('Order can not be saved'); |
@@ -537,17 +537,17 @@ |
||
| 537 | 537 | } |
| 538 | 538 | |
| 539 | 539 | $this->magentoOrder->addStatusHistoryComment($metadataInfo) |
| 540 | - ->setIsCustomerNotified(false) |
|
| 541 | - ->setEntityName('order') |
|
| 542 | - ->save(); |
|
| 540 | + ->setIsCustomerNotified(false) |
|
| 541 | + ->setEntityName('order') |
|
| 542 | + ->save(); |
|
| 543 | 543 | |
| 544 | 544 | $comment = 'pagantisOrderId: ' . $this->pagantisOrder->getId(). ' ' . |
| 545 | - 'pagantisOrderStatus: '. $this->pagantisOrder->getStatus(). ' ' . |
|
| 546 | - 'via: '. $this->origin; |
|
| 545 | + 'pagantisOrderStatus: '. $this->pagantisOrder->getStatus(). ' ' . |
|
| 546 | + 'via: '. $this->origin; |
|
| 547 | 547 | $this->magentoOrder->addStatusHistoryComment($comment) |
| 548 | - ->setIsCustomerNotified(false) |
|
| 549 | - ->setEntityName('order') |
|
| 550 | - ->save(); |
|
| 548 | + ->setIsCustomerNotified(false) |
|
| 549 | + ->setEntityName('order') |
|
| 550 | + ->save(); |
|
| 551 | 551 | |
| 552 | 552 | if ($this->magentoOrderId == '') { |
| 553 | 553 | throw new UnknownException('Order can not be saved'); |