align deletion test guidance
This commit is contained in:
parent
49b58a9cba
commit
43e44b65af
1 changed files with 3 additions and 0 deletions
|
|
@ -50,6 +50,9 @@ intentionally unclaimed; the built-in health endpoint is `/up`.
|
||||||
through additional repositories.
|
through additional repositories.
|
||||||
- Test use-case branches at the use-case seam. Do not repeat every branch in
|
- Test use-case branches at the use-case seam. Do not repeat every branch in
|
||||||
controller or HTTP tests.
|
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
|
- Plain entities, value objects, use cases, middleware, and controller units
|
||||||
should extend `PHPUnit\Framework\TestCase` when they do not need Laravel.
|
should extend `PHPUnit\Framework\TestCase` when they do not need Laravel.
|
||||||
- Extend `Tests\TestCase` only when a test needs Laravel's container, facades,
|
- Extend `Tests\TestCase` only when a test needs Laravel's container, facades,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue