From aba49edaeecbd578f7cda8d3520403e965118d97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Tue, 17 Nov 2026 12:32:21 +0100 Subject: [PATCH] chore(config,tests): disable local disk serving route and freeze time in ShopperTest --- tests/Unit/Domain/Models/Entities/ShopperTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Unit/Domain/Models/Entities/ShopperTest.php b/tests/Unit/Domain/Models/Entities/ShopperTest.php index d021dc5a..f598d3d7 100644 --- a/tests/Unit/Domain/Models/Entities/ShopperTest.php +++ b/tests/Unit/Domain/Models/Entities/ShopperTest.php @@ -15,6 +15,14 @@ use Domain\Models\ValueObjects\ShopperSiteCode; use Shared\Helpers\UuidHelper; describe('Shopper', function (): void { + beforeEach(function (): void { + CarbonImmutable::setTestNow(CarbonImmutable::parse('2026-06-15 10:00:00', 'Europe/Paris')); + }); + + afterEach(function (): void { + CarbonImmutable::setTestNow(); + }); + it('can instantiate correctly and check active status (active)', function (): void { // GIVEN $id = new ShopperId(UuidHelper::v7());