Replies: 2 comments
-
Hi, most likely you are getting a 401 error because the user does not have enough basic rights Try usage of factory user with all permissions: use Orchid\Support\Facades\Dashboard;
$user = User::factory()->create([
'permissions' => Dashboard::getAllowAllPermission(),
]);
$screen = $this->screen('platform.example')->actingAs($user); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello, thx for the answer :D (sorry for my english :'( ) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I try to make a test for delete permission route but I always have redirect status instaead of 401.
There is my test, url is it good ?
`
`
Beta Was this translation helpful? Give feedback.
All reactions