---
description: Write Feature/Unit tests for given files or features, matching project conventions.
argument-hint: <file/feature to cover, or "the current diff">
---

Write tests for: **$ARGUMENTS**

Use the `test-writer` agent. Follow the `testing-conventions` skill exactly:
- `RefreshDatabase`, base URL built from `config('app.{backend,frontend}_sub_domain').'.'.config('app.domain')`.
- Spatie permissions seeded in `setUp()` (`firstOrCreate`, `guard_name => web`), grep the real permission names.
- French snake_case test method names.
- Cover happy path + unauthorized (403) + unauthenticated.
- Prioritize money paths (`total_price`, `PaymentService`, vouchers), imports, validation, RBAC.

Run `php artisan test --filter <Name>`. If a test surfaces a real bug, report it — do not weaken assertions to pass. Report the test files and pass/fail output.
