From a4a68fa490589815cc0bf56fc8da8236d6493404 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Wed, 19 Aug 2015 14:58:04 +0530 Subject: [PATCH] Test case fix for Custom Value using != --- tests/phpunit/api/v3/CustomValueTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/CustomValueTest.php b/tests/phpunit/api/v3/CustomValueTest.php index 0471ac8d99..4920da8abe 100644 --- a/tests/phpunit/api/v3/CustomValueTest.php +++ b/tests/phpunit/api/v3/CustomValueTest.php @@ -207,7 +207,7 @@ class api_v3_CustomValueTest extends CiviUnitTestCase { case '!=': $result = $this->callAPISuccess('Contact', 'Get', array('custom_' . $customId => array($op => $notselectedValue))); - $this->assertEquals($contactId, $result['id']); + $this->assertEquals(TRUE, array_key_exists($contactId, $result['values'])); echo $description . $notselectedValue; break; -- 2.25.1