Merge pull request #20947 from colemanw/sqlFunctions
[civicrm-core.git] / tests / phpunit / CRM / Contact / SelectorTest.php
index 75f1a1d9410c17bd1cb68b7f7e45e5fcb42e09d9..2841d6f1f4510b33284b2e53c3d4abecae039606 100644 (file)
@@ -664,7 +664,7 @@ AND ( 1 ) AND (contact_a.is_deleted = 0)',
       FALSE, FALSE
     );
     //Check if custom table is included in $query->_tables.
-    $this->assertTrue(in_array($cgTableName, array_keys($query->_tables)));
+    $this->assertTrue(array_key_exists($cgTableName, $query->_tables));
     //Assert if from clause joins the custom table.
     $this->assertTrue(strpos($query->_fromClause, $cgTableName) !== FALSE);
     $this->callAPISuccess('CustomField', 'delete', ['id' => $customField['id']]);