From 5cf7a77eebd45caa7734210639c286de57237bef Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 7 Feb 2017 16:24:16 +1300 Subject: [PATCH] Test tidy ups, formatting, casing --- tests/phpunit/CRM/Contact/BAO/QueryTest.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/CRM/Contact/BAO/QueryTest.php b/tests/phpunit/CRM/Contact/BAO/QueryTest.php index 5c014f30b8..8111339be4 100644 --- a/tests/phpunit/CRM/Contact/BAO/QueryTest.php +++ b/tests/phpunit/CRM/Contact/BAO/QueryTest.php @@ -349,17 +349,20 @@ class CRM_Contact_BAO_QueryTest extends CiviUnitTestCase { "display_name" => 1, "preferred_mail_format" => 1, ); - $numberofContacts = 2; + $numberOfContacts = 2; $query = new CRM_Contact_BAO_Query($params, $returnProperties); try { - $query->apiQuery($params, $returnProperties, NULL, NULL, 0, $numberofContacts); + $query->apiQuery($params, $returnProperties, NULL, NULL, 0, $numberOfContacts); } 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); + $this->assertEquals( + "A fatal error was triggered: One of parameters (value: foo@example.com) is not of the type Positive", + $e->getMessage() + ); + $this->assertTrue(TRUE); + return; } - return $this->fail('Test failed for some reason which is not good'); + $this->fail('Test failed for some reason which is not good'); } } -- 2.25.1