From 74714fd215cf1cf0111bf07399e9d1b77e67a6e1 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 581e5cff64..2c5a6d8e82 100644 --- a/tests/phpunit/CRM/Contact/BAO/QueryTest.php +++ b/tests/phpunit/CRM/Contact/BAO/QueryTest.php @@ -320,7 +320,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( @@ -340,7 +340,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