From 43e44b65af0ed04908420bc3f35e92d56d6e6eb8 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Fri, 7 Aug 2026 18:07:46 +0300 Subject: [PATCH] align deletion test guidance --- ai/backend-context.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ai/backend-context.md b/ai/backend-context.md index 9214acd..83c2081 100644 --- a/ai/backend-context.md +++ b/ai/backend-context.md @@ -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,