align deletion test guidance

This commit is contained in:
Yisroel Baum 2026-08-07 18:07:46 +03:00
parent 49b58a9cba
commit 43e44b65af
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -50,6 +50,9 @@ intentionally unclaimed; the built-in health endpoint is `/up`.
through additional repositories.
- Test use-case branches at the use-case seam. Do not repeat every branch in
controller or HTTP tests.
- Keep deletion behavior tests in the relevant deletion use-case suite. Do
not test deletion policy through entity, repository, or database-constraint
tests.
- Plain entities, value objects, use cases, middleware, and controller units
should extend `PHPUnit\Framework\TestCase` when they do not need Laravel.
- Extend `Tests\TestCase` only when a test needs Laravel's container, facades,