Skip to content

Commit da2039c

Browse files
committed
test(integration): update UserProfileFieldCheck integration test
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent a222c1b commit da2039c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/php/ControllerIntegration/Workflow/UserProfileFieldCheckIntegrationTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,8 @@ private function createWorkflowRuleForDepartment(string $fieldKey, string $expec
249249
$definition->setFieldKey($fieldKey);
250250
$definition->setLabel('Department');
251251
$definition->setType(FieldType::TEXT->value);
252-
$definition->setAdminOnly(false);
253-
$definition->setUserEditable(true);
254-
$definition->setUserVisible(true);
255-
$definition->setInitialVisibility(FieldVisibility::USERS->value);
252+
$definition->setEditPolicy(\OCA\ProfileFields\Enum\FieldEditPolicy::USERS->value);
253+
$definition->setExposurePolicy(\OCA\ProfileFields\Enum\FieldExposurePolicy::USERS->value);
256254
$definition->setSortOrder(0);
257255
$definition->setActive(true);
258256
$definition->setCreatedAt(new \DateTime());

0 commit comments

Comments
 (0)