From f683f46c3e8589c9ba42e9d23b7651f84d1ef0c8 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Fri, 14 Aug 2026 09:59:01 +0300 Subject: [PATCH] document behavior focused schema tests --- ai/backend-context.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ai/backend-context.md b/ai/backend-context.md index 9850c44..7fc2f71 100644 --- a/ai/backend-context.md +++ b/ai/backend-context.md @@ -69,6 +69,9 @@ intentionally unclaimed; the built-in health endpoint is `/up`. relevant authorization guard instead of duplicating all business branches. - Place endpoint tests under `tests/Feature//`, extend `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. PHPUnit uses SQLite `:memory:` as configured in `phpunit.xml`, so feature tests are self-contained and do not need the worktree stack.