APIv4 - Move list of accepted query operators to CoreUtil
[civicrm-core.git] / tests / phpunit / api / v4 / Action / ExtendFromIndividualTest.php
index 9a363a19ec82390124e7950f4b27ca824c787e37..df1c0c16ae02fad03b57f5c1da09acb2e1dd9c66 100644 (file)
@@ -14,8 +14,6 @@
  *
  * @package CRM
  * @copyright CiviCRM LLC https://civicrm.org/licensing
- * $Id$
- *
  */
 
 
@@ -32,24 +30,21 @@ class ExtendFromIndividualTest extends BaseCustomValueTest {
 
   public function testGetWithNonStandardExtends() {
 
-    $customGroup = CustomGroup::create()
-      ->setCheckPermissions(FALSE)
+    $customGroup = CustomGroup::create(FALSE)
       ->addValue('name', 'MyContactFields')
       // not Contact
       ->addValue('extends', 'Individual')
       ->execute()
       ->first();
 
-    CustomField::create()
-      ->setCheckPermissions(FALSE)
+    CustomField::create(FALSE)
       ->addValue('label', 'FavColor')
       ->addValue('custom_group_id', $customGroup['id'])
       ->addValue('html_type', 'Text')
       ->addValue('data_type', 'String')
       ->execute();
 
-    $contactId = Contact::create()
-      ->setCheckPermissions(FALSE)
+    $contactId = Contact::create(FALSE)
       ->addValue('first_name', 'Johann')
       ->addValue('last_name', 'Tester')
       ->addValue('contact_type', 'Individual')
@@ -57,8 +52,7 @@ class ExtendFromIndividualTest extends BaseCustomValueTest {
       ->execute()
       ->first()['id'];
 
-    $contact = Contact::get()
-      ->setCheckPermissions(FALSE)
+    $contact = Contact::get(FALSE)
       ->addSelect('display_name')
       ->addSelect('MyContactFields.FavColor')
       ->addWhere('id', '=', $contactId)