document behavior focused schema tests

This commit is contained in:
Yisroel Baum 2026-08-14 09:59:01 +03:00
parent bde48331de
commit f683f46c3e
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -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.