$mapping[] =
[ 'key' => 'translations.DEFAULT.customFields.custom_field_5',
'mappedKey' => 'custom_field_5',
];
$mapping[] =
[ 'key' => 'translations.DEFAULT.customFields',
'mappedKey' => 'custom_fields',
];
$this->
updateProfileMapping($profile->
getId(),
$mapping);
$this->
createCustomField([ [ 'name' => 'custom_field_1',
'type' => 'string',
],
[ 'name' => 'custom_field_2',
'type' => 'int',
],
[ 'name' => 'custom_field_3',
'type' => 'bool',
],