Test fix : adjust expected message from when a.net is unresponsive
authoreileenmcnaugton <eileen@fuzion.co.nz>
Fri, 18 Dec 2015 00:02:32 +0000 (13:02 +1300)
committereileenmcnaugton <eileen@fuzion.co.nz>
Fri, 18 Dec 2015 00:43:43 +0000 (13:43 +1300)
tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php

index 6803db78b936a3d70ef3eecf8bf0324dfd107bd3..5a6369226f0d285579c34a37e19553ba0714df79 100644 (file)
@@ -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');
     }
   }