Testing using acting as with superadmin.
Hi, i'm using PEST to test some parts of my panel, and I want to make a test to assert that some html is visible.
The problem is when i'm trying to use a new user, with
super_admin
role, but when the page render, it trows 403 forbidden.
Here the test:
4 Replies
I see in bbdd that the user is created correctly, all perms are created correctly, the super_admin has all permisions assigned, and the user has the super_admin role assigned.
change the APP_ENV value to local in the phpunit.xml file and try again
Solution
thanks, that is the problem.
that was causing the 403