From 0cd539c180f1dd73d8d46a5df25c39f798e06e74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 12 Aug 2026 17:01:09 +0200 Subject: [PATCH] test(architecture): add rules to prevent Presenters and Views Ensure that the Application layer does not contain Presenters or Views. --- tests/Architecture/ApplicationTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/Architecture/ApplicationTest.php b/tests/Architecture/ApplicationTest.php index fe69821..eeeb528 100644 --- a/tests/Architecture/ApplicationTest.php +++ b/tests/Architecture/ApplicationTest.php @@ -24,4 +24,14 @@ describe('Application Architecture Rules', function (): void { ->expect('Application\Usecase') ->toBeReadonly() ->toBeFinal(); + + arch('Application layer must not contain Presenters') + ->expect('Application') + ->classes() + ->not->toHaveSuffix('Presenter'); + + arch('Application layer must not contain Views') + ->expect('Application') + ->classes() + ->not->toHaveSuffix('View'); });