chore(config,tests): disable local disk serving route and freeze time in ShopperTest
This commit is contained in:
parent
0a52798a3e
commit
aba49edaee
1 changed files with 8 additions and 0 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue