Test case fix for Custom Value using !=
authormonishdeb <monish.deb@webaccessglobal.com>
Wed, 19 Aug 2015 09:28:04 +0000 (14:58 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Wed, 19 Aug 2015 09:28:04 +0000 (14:58 +0530)
tests/phpunit/api/v3/CustomValueTest.php

index 0471ac8d99dd501848b592df0cf5c3c66c24170f..4920da8abe300571a08df667b423eae104738e6d 100644 (file)
@@ -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;