I'm trying to visit a route protected by middleware as a guest, and I can assert that both the current url and the view are correctly the login page, but for some reason the actual page content is from the view that should be blocked.
I can't reproduce that issue manually, so trying to figure out what's going on.
Here's the code snippet (using sqlite): https://paste.laravel.io/d1608f39-1abe-4453-ab8c-34dc65498b88
Only the final assertion is failing
Oddly, when I test the same thing as a user not authorized for that organization, it correctly returns a 401 and displays the correct view content
Aucun commentaire:
Enregistrer un commentaire