document behavior focused schema tests
This commit is contained in:
parent
bde48331de
commit
f683f46c3e
1 changed files with 3 additions and 0 deletions
|
|
@ -69,6 +69,9 @@ intentionally unclaimed; the built-in health endpoint is `/up`.
|
||||||
relevant authorization guard instead of duplicating all business branches.
|
relevant authorization guard instead of duplicating all business branches.
|
||||||
- Place endpoint tests under `tests/Feature/<Area>/`, extend
|
- Place endpoint tests under `tests/Feature/<Area>/`, extend
|
||||||
`Tests\TestCase`, and use `RefreshDatabase` when database state is involved.
|
`Tests\TestCase`, and use `RefreshDatabase` when database state is involved.
|
||||||
|
- Do not keep tests that only assert an obsolete column or other removed
|
||||||
|
schema detail is absent. Such assertions may verify a removal while it is
|
||||||
|
being developed, but discard them afterward and retain behavioral coverage.
|
||||||
- Development and runtime use PostgreSQL through the local Unix socket.
|
- Development and runtime use PostgreSQL through the local Unix socket.
|
||||||
PHPUnit uses SQLite `:memory:` as configured in `phpunit.xml`, so feature
|
PHPUnit uses SQLite `:memory:` as configured in `phpunit.xml`, so feature
|
||||||
tests are self-contained and do not need the worktree stack.
|
tests are self-contained and do not need the worktree stack.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue