We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc74146 commit a222c1bCopy full SHA for a222c1b
1 file changed
tests/php/ControllerIntegration/Workflow/LogProfileFieldChangeOperationTest.php
@@ -247,10 +247,8 @@ private function createDefinition(string $fieldKey): FieldDefinition {
247
$definition->setFieldKey($fieldKey);
248
$definition->setLabel('Department');
249
$definition->setType(FieldType::TEXT->value);
250
- $definition->setAdminOnly(false);
251
- $definition->setUserEditable(true);
252
- $definition->setUserVisible(true);
253
- $definition->setInitialVisibility(FieldVisibility::USERS->value);
+ $definition->setEditPolicy(\OCA\ProfileFields\Enum\FieldEditPolicy::USERS->value);
+ $definition->setExposurePolicy(\OCA\ProfileFields\Enum\FieldExposurePolicy::USERS->value);
254
$definition->setSortOrder(0);
255
$definition->setActive(true);
256
$definition->setCreatedAt(new \DateTime());
0 commit comments