From bb005a0b086bcb85a004d51d2c1746b75faa0a0c Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 16 Nov 2016 14:56:05 +1100 Subject: [PATCH] Fix test as per comments from Eileen --- tests/phpunit/CRM/Contact/BAO/QueryTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Contact/BAO/QueryTest.php b/tests/phpunit/CRM/Contact/BAO/QueryTest.php index 1d56eff01f..3c33bdd600 100644 --- a/tests/phpunit/CRM/Contact/BAO/QueryTest.php +++ b/tests/phpunit/CRM/Contact/BAO/QueryTest.php @@ -196,7 +196,7 @@ class CRM_Contact_BAO_QueryTest extends CiviUnitTestCase { */ public function testContactIDClause() { $params = array( - array("mark_x_93980", "=", 1, 0, 0), + array("mark_x_2", "=", 1, 0, 0), array("mark_x_foo@example.com", "=", 1, 0, 0), ); $returnProperties = array( @@ -216,7 +216,9 @@ class CRM_Contact_BAO_QueryTest extends CiviUnitTestCase { catch (Exception $e) { $this->assertEquals("A fatal error was triggered: One of parameters (value: foo@example.com) is not of the type Positive", $e->getMessage()); + return $this->assertTrue(TRUE); } + return $this->fail('Test failed for some reason which is not good'); } } -- 2.25.1