diff --git a/tests/Cms/Users/UserPermissionsTest.php b/tests/Cms/Users/UserPermissionsTest.php index 9c2f87e51f..695806b6cd 100644 --- a/tests/Cms/Users/UserPermissionsTest.php +++ b/tests/Cms/Users/UserPermissionsTest.php @@ -131,6 +131,8 @@ public function testChangeSingleRole() ] ]); + $app->impersonate('kirby'); + $user = new User(['email' => 'test@getkirby.com']); $perms = $user->permissions();