*
* @package CRM
* @copyright CiviCRM LLC https://civicrm.org/licensing
- * $Id$
- *
*/
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')
->execute()
->first()['id'];
- $contact = Contact::get()
- ->setCheckPermissions(FALSE)
+ $contact = Contact::get(FALSE)
->addSelect('display_name')
->addSelect('MyContactFields.FavColor')
->addWhere('id', '=', $contactId)