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