From 64087f9040bfdab42194d29aca4a539928aca6a2 Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 11 May 2016 17:01:53 +1200 Subject: [PATCH] Add extra info for the test that showed a fail. THis is kinda unrelated but if we can make it easier to make sense of or go away .. yay --- tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php b/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php index 6798bb93e4..70a0d2c280 100644 --- a/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php +++ b/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php @@ -335,8 +335,8 @@ class CRM_Core_Payment_AuthorizeNetTest extends CiviUnitTestCase { $this->processor->doPayment($params); } catch (Exception $e) { - $this->assertTrue(substr($e->getMessage(), 0, 32) == 'E00001: Internal Error Occurred.', - 'AuthorizeNet failed for unknown reason.'); + $this->assertTrue(strstr($e->getMessage(), 'E00001: Internal Error Occurred.'), + 'AuthorizeNet failed for unknown reason.' . $e->getMessage()); $this->markTestSkipped('AuthorizeNet test server is not in a good mood so we can\'t test this right now'); } } -- 2.25.1