From 84c4c0fa9b7dccb1bbb32b4e80ee5d63c395ef3e Mon Sep 17 00:00:00 2001 From: Rik ter Beek Date: Tue, 27 Nov 2018 14:59:47 +0100 Subject: [PATCH 1/3] fix tests --- tests/PayoutThirdPartyTest.php | 6 +++--- tests/TestCase.php | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/PayoutThirdPartyTest.php b/tests/PayoutThirdPartyTest.php index 07a615539..4929f9af7 100644 --- a/tests/PayoutThirdPartyTest.php +++ b/tests/PayoutThirdPartyTest.php @@ -48,7 +48,7 @@ public function testStoreDetailAndSubmitPayoutThirdPartyMissingReference() // check if exception is correct $this->assertEquals('Adyen\AdyenException', get_class($e)); - $this->assertEquals('Missing the following fields: reference', $e->getMessage()); + $this->assertEquals('Required field \'reference\' is null', $e->getMessage()); } @@ -314,7 +314,7 @@ public function testConfirmPayoutThirdPartyInvalidReference() // check if exception is correct $this->assertEquals('Adyen\AdyenException', get_class($e)); - $this->assertEquals('Missing the following values: originalReference', $e->getMessage()); + $this->assertEquals('Invalid Request: Original pspReference is invalid for this environment!', $e->getMessage()); } public function testDeclinePayoutThirdPartySuccess() @@ -373,7 +373,7 @@ public function testDeclinePayoutThirdPartyInvalidReference() // check if exception is correct $this->assertEquals('Adyen\AdyenException', get_class($e)); - $this->assertEquals('Missing the following values: originalReference', $e->getMessage()); + $this->assertEquals('Invalid Request: Original pspReference is invalid for this environment!', $e->getMessage()); } } diff --git a/tests/TestCase.php b/tests/TestCase.php index 6d6764390..63b28bf7e 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -18,6 +18,8 @@ class TestCase extends \PHPUnit_Framework_TestCase public function __construct() { + date_default_timezone_set('Europe/Amsterdam'); + $this->settings = $this->_loadConfigIni(); $this->_merchantAccount = $this->getMerchantAccount(); $this->_skinCode = $this->getSkinCode(); From 215194fed57996e927a20e3be887a37df4abe3f4 Mon Sep 17 00:00:00 2001 From: Rik ter Beek Date: Thu, 29 Nov 2018 10:57:42 +0100 Subject: [PATCH 2/3] Update tests/TestCase.php --- tests/TestCase.php | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 63b28bf7e..5bfff699c 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -18,7 +18,6 @@ class TestCase extends \PHPUnit_Framework_TestCase public function __construct() { - date_default_timezone_set('Europe/Amsterdam'); $this->settings = $this->_loadConfigIni(); $this->_merchantAccount = $this->getMerchantAccount(); From e283513ae617524793cdc7c407dd2dbc7584af08 Mon Sep 17 00:00:00 2001 From: Rik ter Beek Date: Thu, 29 Nov 2018 10:58:40 +0100 Subject: [PATCH 3/3] Update TestCase.php --- tests/TestCase.php | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 5bfff699c..6d6764390 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -18,7 +18,6 @@ class TestCase extends \PHPUnit_Framework_TestCase public function __construct() { - $this->settings = $this->_loadConfigIni(); $this->_merchantAccount = $this->getMerchantAccount(); $this->_skinCode = $this->getSkinCode();