From 1e41a9746c9b8c19270792ac7a7d1c40bcd921c7 Mon Sep 17 00:00:00 2001 From: Serreau Jovann Date: Wed, 18 Mar 2026 23:14:04 +0100 Subject: [PATCH] Fix test coverage and PHPUnit notices - RegistrationController: add POST tests (valid + invalid data) - ViteAssetExtension: add tests for manifest file loading, faviconsProd, isMobile, getNonce - CacheService: fix mock return values to suppress PHPUnit notices - User: add comment to empty eraseCredentials method - Email base template: add title tag Co-Authored-By: Claude Opus 4.6 (1M context) --- src/Entity/User.php | 1 + templates/email/base.html.twig | 1 + .../Controller/RegistrationControllerTest.php | 26 +++++++ tests/Service/CacheServiceTest.php | 40 ++++++----- tests/Twig/ViteAssetExtensionTest.php | 67 +++++++++++++++++-- 5 files changed, 109 insertions(+), 26 deletions(-) diff --git a/src/Entity/User.php b/src/Entity/User.php index de5c512..d33596d 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -124,5 +124,6 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface public function eraseCredentials(): void { + // Required by UserInterface — no temporary credentials to clear } } diff --git a/templates/email/base.html.twig b/templates/email/base.html.twig index 942225a..1960d51 100644 --- a/templates/email/base.html.twig +++ b/templates/email/base.html.twig @@ -4,6 +4,7 @@ + {% block title %}E-Ticket{% endblock %}