From a1f6d3d18abe6d1734db7328d88594d5873ee919 Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Fri, 18 Dec 2015 13:02:32 +1300 Subject: [PATCH] Test fix : adjust expected message from when a.net is unresponsive --- tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php b/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php index 6803db78b9..5a6369226f 100644 --- a/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php +++ b/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php @@ -337,7 +337,8 @@ class CRM_Core_Payment_AuthorizeNetTest extends CiviUnitTestCase { $this->processor->doPayment($params); } catch (Exception $e) { - $this->assertEquals('E00001: Internal Error Occurred.', $e->getMessage(), 'AuthorizeNet failed for unknown reason.'); + $this->assertTrue(substr($e->getMessage(), 0, 32) == 'E00001: Internal Error Occurred.', + 'AuthorizeNet failed for unknown reason.'); $this->markTestSkipped('AuthorizeNet test server is not in a good mood so we can\'t test this right now'); } } -- 2.25.1