From d1d131255216f6431a90baa28f9e67a43da0302e Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Mon, 16 May 2016 21:25:41 +0200 Subject: [PATCH] Ensure the check in assertAPIFailure is based on the expected error message. --- tests/phpunit/CiviTest/CiviUnitTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index a74bca2c97..2bff8498a8 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -968,7 +968,7 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase { ); } $result = $this->civicrm_api($entity, $action, $params); - $this->assertAPIFailure($result, "We expected a failure for $entity $action but got a success"); + $this->assertAPIFailure($result, "We expected a failure for $entity $action but got a success", $expectedErrorMessage); return $result; } -- 2.25.1