X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fapi%2Fv4%2FAction%2FExtendFromIndividualTest.php;h=df1c0c16ae02fad03b57f5c1da09acb2e1dd9c66;hb=ff5ac948e01686257ae5965b7947c79ceee70037;hp=9a363a19ec82390124e7950f4b27ca824c787e37;hpb=de6eb1ef8e5ab37e95cbbb06dc740cbd783e3fa7;p=civicrm-core.git diff --git a/tests/phpunit/api/v4/Action/ExtendFromIndividualTest.php b/tests/phpunit/api/v4/Action/ExtendFromIndividualTest.php index 9a363a19ec..df1c0c16ae 100644 --- a/tests/phpunit/api/v4/Action/ExtendFromIndividualTest.php +++ b/tests/phpunit/api/v4/Action/ExtendFromIndividualTest.php @@ -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)