From: monishdeb Date: Wed, 19 Aug 2015 09:28:04 +0000 (+0530) Subject: Test case fix for Custom Value using != X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a4a68fa490589815cc0bf56fc8da8236d6493404;p=civicrm-core.git Test case fix for Custom Value using != --- 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;