From 3dc2013c38cb54b0fdfb4bb824b44487dfbe93ec Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 19 May 2016 09:54:45 +1200 Subject: [PATCH] Fix mis-failing test assertion --- tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php b/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php index 70a0d2c280..bf436f01c1 100644 --- a/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php +++ b/tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php @@ -335,7 +335,7 @@ class CRM_Core_Payment_AuthorizeNetTest extends CiviUnitTestCase { $this->processor->doPayment($params); } catch (Exception $e) { - $this->assertTrue(strstr($e->getMessage(), 'E00001: Internal Error Occurred.'), + $this->assertTrue((strpos($e->getMessage(), 'E00001: Internal Error Occurred.') !== FALSE), '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