Skip to content

Commit bcf32ce

Browse files
committed
Fix UserPermissions unit test
Without having a current user, the permission would be `false` even if the logic test in `canChangeRole()` would not work, thus making the test useless
1 parent 0c080cf commit bcf32ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Cms/Users/UserPermissionsTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ public function testChangeSingleRole()
131131
]
132132
]);
133133

134+
$app->impersonate('kirby');
135+
134136
$user = new User(['email' => '[email protected]']);
135137
$perms = $user->permissions();
136138

0 commit comments

Comments
 (0)