Skip to content

Commit

Permalink
[Tests-Only] Use uidNumber and gidNumber while creating user
Browse files Browse the repository at this point in the history
  • Loading branch information
dpakach committed Aug 13, 2020
1 parent c4ea6d2 commit 7da9d03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/acceptance/features/bootstrap/Provisioning.php
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,10 @@ public function usersHaveBeenCreated(
} else {
$attributesToCreateUser['email'] = $userAttributes['email'];
}
// gidnumber 30000 is gid of default group "users"
$attributesToCreateUser['gidnumber'] = 30000;
// A new random number for uidnumber
$attributesToCreateUser['uidnumber'] = 40040 + count($this->getCreatedUsers());
}
// Create a OCS request for creating the user. The request is not sent to the server yet.
$request = OcsApiHelper::createOcsRequest(
Expand Down

0 comments on commit 7da9d03

Please sign in to comment.