From: eileenmcnaugton Date: Fri, 18 Dec 2015 00:02:32 +0000 (+1300) Subject: Test fix : adjust expected message from when a.net is unresponsive X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a1f6d3d18abe6d1734db7328d88594d5873ee919;p=civicrm-core.git Test fix : adjust expected message from when a.net is unresponsive --- 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'); } }