Write a feature test for a permissions bug
Mid · tests · 25 min · runtime php-cli
Brief
Write a feature test that proves a user cannot mark another user's task complete. Include the authenticated request and the expected status, and explain what a passing test before the fix would mean.
3 progressive hints are available in the editor.
Public checks
- uses two users — expected:
arranges an owner and a non-owner