1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-10-30 07:32:39 +01:00

Updated test to have reliable check ordering

This commit is contained in:
Dan Brown 2023-02-18 19:01:38 +00:00
parent 3c3c2ae9b5
commit 9502f349a2
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -133,7 +133,7 @@ class RolesApiTest extends TestCase
'description' => $role->description,
'mfa_enforced' => $role->mfa_enforced,
'external_auth_id' => $role->external_auth_id,
'permissions' => $role->permissions()->pluck('name')->toArray(),
'permissions' => $role->permissions()->orderBy('name', 'asc')->pluck('name')->toArray(),
'users' => $role->users()->get()->map(function (User $user) {
return [
'id' => $user->id,