Skip to content

Commit

Permalink
9.0.0 -- Attempt to fix unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
maximj committed Oct 30, 2018
1 parent ca8135d commit 89af489
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ Contact Mollie: [www.mollie.com/nl/about](https://www.mollie.com/nl/about) — i
+ [More info on Giropay via Mollie](https://www.mollie.com/payments/giropay/)
+ [More info on Klarna Pay Later via Mollie](https://www.mollie.com/payments/klarna-pay-later/)
+ [More info on Klarna Slite It via Mollie](https://www.mollie.com/payments/klarna-slice-it/)

6 changes: 3 additions & 3 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
define("DIR_APPLICATION", realpath(dirname(__FILE__) . "/.."));
define("DIR_SYSTEM", DIR_APPLICATION . "/system");
define("DIR_TEMPLATE", DIR_APPLICATION . "/catalog/view/theme");
define("VERSION", '8.2.3');
define("VERSION", '9.0.0');


date_default_timezone_set("Europe/Amsterdam");
Expand All @@ -15,8 +15,8 @@

$map = array(
"MollieHelper" => "$project_dir/catalog/controller/payment/mollie/helper.php",
"ControllerExtensionPaymentMollieBase" => "$project_dir/catalog/controller/payment/mollie/base.php",
"ModelExtensionPaymentMollieBase" => "$project_dir/catalog/model/payment/mollie/base.php",
"ControllerPaymentMollieBase" => "$project_dir/catalog/controller/payment/mollie/base.php",
"ModelPaymentMollieBase" => "$project_dir/catalog/model/payment/mollie/base.php",
);

if (isset($map[$className]))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function testSetPaymentNothingAffected()
{
$this->model->db->expects($this->once())
->method("query")
->with("REPLACE INTO `prefix_mollie_payments` (`order_id` ,`transaction_id`, `method`)
->with("REPLACE INTO `prefix_mollie_payments` (`order_id` ,`mollie_order_id`, `method`)
VALUES ('1337', '1bba1d8fdbd8103b46151634bdbe0a60', 'idl')");

$this->model->db->expects($this->once())
Expand All @@ -77,7 +77,7 @@ public function testSetPaymentPaymentSet()
{
$this->model->db->expects($this->once())
->method("query")
->with("REPLACE INTO `prefix_mollie_payments` (`order_id` ,`transaction_id`, `method`)
->with("REPLACE INTO `prefix_mollie_payments` (`order_id` ,`mollie_order_id`, `method`)
VALUES ('1337', '1bba1d8fdbd8103b46151634bdbe0a60', 'idl')");

$this->model->db->expects($this->once())
Expand Down

0 comments on commit 89af489

Please sign in to comment.