mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-12-04 05:22:38 +03:00
Updated test to have reliable check ordering
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user