fix: Fix integration tests

Birthdate was missing in editable fields while being editable, and the
 order was checked while having no importance.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2026-02-05 10:40:23 +01:00
parent 173a338f76
commit 51ccc8a838
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A
2 changed files with 6 additions and 0 deletions

View file

@ -267,6 +267,9 @@ trait Provisioning {
$expectedFields = $fields->getRows();
$expectedFields = $this->simplifyArray($expectedFields);
/* Sort both arrays as order is not important */
sort($fieldsArray);
sort($expectedFields);
Assert::assertEquals($expectedFields, $fieldsArray);
}

View file

@ -79,6 +79,7 @@ Feature: provisioning
| role |
| headline |
| biography |
| birthdate |
| profile_enabled |
| pronouns |
Given As an "brand-new-user"
@ -96,6 +97,7 @@ Feature: provisioning
| role |
| headline |
| biography |
| birthdate |
| profile_enabled |
| pronouns |
Then user "self" has editable fields
@ -112,6 +114,7 @@ Feature: provisioning
| role |
| headline |
| biography |
| birthdate |
| profile_enabled |
| pronouns |