2026-06-14 21:32:07 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace Tests\Unit\Domain\Models\Entities;
|
|
|
|
|
|
|
|
|
|
use Carbon\CarbonImmutable;
|
|
|
|
|
use Domain\Models\Entities\Shopper;
|
|
|
|
|
use Domain\Models\ValueObjects\Email;
|
|
|
|
|
use Domain\Models\ValueObjects\Entities\ShopperId;
|
|
|
|
|
use Domain\Models\ValueObjects\Matricule;
|
feat(employees): automated sync with Arcadia API, BO settings, Shopper value objects, and pagination migration
- Implement automated synchronization of employees via Arcadia API (EmployeeSyncService, SynchronizeEmployeesWithArcadiaApi, FetchAndUpsertArcadiaEmployees)
- Add Back-Office application settings for employee sites (Setting singleton, GetSettingsQuery, UpdateSettings, SettingsController, EmployeeSitesInputComponent.vue)
- Strongly type Employee attributes using Domain Value Objects (ShopperEstablishmentCode, ShopperSiteCode, ShopperServiceCode) and Eloquent Casts
- Migrate pagination from Domain to Shared\Pagination namespace across queries and inputs
- Remove legacy and dead CSV employee import/export code
- Restore Domain\Ports\Services\CsvGenerator interface for Regate order generation
- Add comprehensive Pest unit, integration, and feature test coverage
2026-10-01 17:26:30 +02:00
|
|
|
use Domain\Models\ValueObjects\ShopperEstablishmentCode;
|
|
|
|
|
use Domain\Models\ValueObjects\ShopperServiceCode;
|
|
|
|
|
use Domain\Models\ValueObjects\ShopperSiteCode;
|
2026-11-17 12:15:39 +01:00
|
|
|
use Shared\Helpers\UuidHelper;
|
2026-06-14 21:32:07 +02:00
|
|
|
|
|
|
|
|
describe('Shopper', function (): void {
|
2026-11-17 12:32:21 +01:00
|
|
|
beforeEach(function (): void {
|
|
|
|
|
CarbonImmutable::setTestNow(CarbonImmutable::parse('2026-06-15 10:00:00', 'Europe/Paris'));
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
afterEach(function (): void {
|
|
|
|
|
CarbonImmutable::setTestNow();
|
|
|
|
|
});
|
|
|
|
|
|
2026-06-14 21:32:07 +02:00
|
|
|
it('can instantiate correctly and check active status (active)', function (): void {
|
|
|
|
|
// GIVEN
|
2026-11-17 12:15:39 +01:00
|
|
|
$id = new ShopperId(UuidHelper::v7());
|
feat(employees): automated sync with Arcadia API, BO settings, Shopper value objects, and pagination migration
- Implement automated synchronization of employees via Arcadia API (EmployeeSyncService, SynchronizeEmployeesWithArcadiaApi, FetchAndUpsertArcadiaEmployees)
- Add Back-Office application settings for employee sites (Setting singleton, GetSettingsQuery, UpdateSettings, SettingsController, EmployeeSitesInputComponent.vue)
- Strongly type Employee attributes using Domain Value Objects (ShopperEstablishmentCode, ShopperSiteCode, ShopperServiceCode) and Eloquent Casts
- Migrate pagination from Domain to Shared\Pagination namespace across queries and inputs
- Remove legacy and dead CSV employee import/export code
- Restore Domain\Ports\Services\CsvGenerator interface for Regate order generation
- Add comprehensive Pest unit, integration, and feature test coverage
2026-10-01 17:26:30 +02:00
|
|
|
$email = new Email('test@example.com');
|
|
|
|
|
$matricule = new Matricule('1234567');
|
|
|
|
|
$startDate = CarbonImmutable::now()->subDay();
|
|
|
|
|
$endDate = null;
|
|
|
|
|
$etablissement = new ShopperEstablishmentCode('ETAB01');
|
|
|
|
|
$site = new ShopperSiteCode('SITE');
|
|
|
|
|
$service = new ShopperServiceCode('101');
|
2026-06-14 21:32:07 +02:00
|
|
|
|
|
|
|
|
// WHEN
|
|
|
|
|
$entity = new Shopper(
|
|
|
|
|
$id,
|
|
|
|
|
$email,
|
|
|
|
|
$matricule,
|
|
|
|
|
'Nom',
|
|
|
|
|
'Prenom',
|
|
|
|
|
$startDate,
|
|
|
|
|
$endDate,
|
feat(employees): automated sync with Arcadia API, BO settings, Shopper value objects, and pagination migration
- Implement automated synchronization of employees via Arcadia API (EmployeeSyncService, SynchronizeEmployeesWithArcadiaApi, FetchAndUpsertArcadiaEmployees)
- Add Back-Office application settings for employee sites (Setting singleton, GetSettingsQuery, UpdateSettings, SettingsController, EmployeeSitesInputComponent.vue)
- Strongly type Employee attributes using Domain Value Objects (ShopperEstablishmentCode, ShopperSiteCode, ShopperServiceCode) and Eloquent Casts
- Migrate pagination from Domain to Shared\Pagination namespace across queries and inputs
- Remove legacy and dead CSV employee import/export code
- Restore Domain\Ports\Services\CsvGenerator interface for Regate order generation
- Add comprehensive Pest unit, integration, and feature test coverage
2026-10-01 17:26:30 +02:00
|
|
|
$etablissement,
|
|
|
|
|
$site,
|
|
|
|
|
$service
|
2026-06-14 21:32:07 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// THEN
|
|
|
|
|
expect($entity->id())->toBe($id)
|
|
|
|
|
->and($entity->email)->toBe($email)
|
|
|
|
|
->and($entity->matricule)->toBe($matricule)
|
|
|
|
|
->and($entity->nom)->toBe('Nom')
|
|
|
|
|
->and($entity->prenom)->toBe('Prenom')
|
|
|
|
|
->and($entity->startDate)->toBe($startDate)
|
|
|
|
|
->and($entity->endDate)->toBeNull()
|
feat(employees): automated sync with Arcadia API, BO settings, Shopper value objects, and pagination migration
- Implement automated synchronization of employees via Arcadia API (EmployeeSyncService, SynchronizeEmployeesWithArcadiaApi, FetchAndUpsertArcadiaEmployees)
- Add Back-Office application settings for employee sites (Setting singleton, GetSettingsQuery, UpdateSettings, SettingsController, EmployeeSitesInputComponent.vue)
- Strongly type Employee attributes using Domain Value Objects (ShopperEstablishmentCode, ShopperSiteCode, ShopperServiceCode) and Eloquent Casts
- Migrate pagination from Domain to Shared\Pagination namespace across queries and inputs
- Remove legacy and dead CSV employee import/export code
- Restore Domain\Ports\Services\CsvGenerator interface for Regate order generation
- Add comprehensive Pest unit, integration, and feature test coverage
2026-10-01 17:26:30 +02:00
|
|
|
->and($entity->etablissement)->toBe($etablissement)
|
|
|
|
|
->and($entity->site)->toBe($site)
|
|
|
|
|
->and($entity->service)->toBe($service)
|
2026-06-14 21:32:07 +02:00
|
|
|
->and($entity->isActive())->toBeTrue();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('is inactive when endDate is in the past', function (): void {
|
|
|
|
|
// GIVEN
|
2026-11-16 02:10:50 +01:00
|
|
|
$endDate = CarbonImmutable::now('Europe/Paris')->subDay();
|
2026-06-14 21:32:07 +02:00
|
|
|
|
|
|
|
|
// WHEN
|
|
|
|
|
$entity = new Shopper(
|
2026-11-17 12:15:39 +01:00
|
|
|
new ShopperId(UuidHelper::v7()),
|
2026-06-14 21:32:07 +02:00
|
|
|
new Email('test@example.com'),
|
|
|
|
|
new Matricule('1234567'),
|
|
|
|
|
'Nom',
|
|
|
|
|
'Prenom',
|
2026-11-16 02:10:50 +01:00
|
|
|
CarbonImmutable::now('Europe/Paris')->subDays(2),
|
2026-06-14 21:32:07 +02:00
|
|
|
$endDate,
|
feat(employees): automated sync with Arcadia API, BO settings, Shopper value objects, and pagination migration
- Implement automated synchronization of employees via Arcadia API (EmployeeSyncService, SynchronizeEmployeesWithArcadiaApi, FetchAndUpsertArcadiaEmployees)
- Add Back-Office application settings for employee sites (Setting singleton, GetSettingsQuery, UpdateSettings, SettingsController, EmployeeSitesInputComponent.vue)
- Strongly type Employee attributes using Domain Value Objects (ShopperEstablishmentCode, ShopperSiteCode, ShopperServiceCode) and Eloquent Casts
- Migrate pagination from Domain to Shared\Pagination namespace across queries and inputs
- Remove legacy and dead CSV employee import/export code
- Restore Domain\Ports\Services\CsvGenerator interface for Regate order generation
- Add comprehensive Pest unit, integration, and feature test coverage
2026-10-01 17:26:30 +02:00
|
|
|
new ShopperEstablishmentCode('ETAB01'),
|
|
|
|
|
new ShopperSiteCode('SITE'),
|
|
|
|
|
new ShopperServiceCode('101')
|
2026-06-14 21:32:07 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// THEN
|
|
|
|
|
expect($entity->isActive())->toBeFalse();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('is active when endDate is in the future', function (): void {
|
|
|
|
|
// GIVEN
|
2026-11-16 02:10:50 +01:00
|
|
|
$endDate = CarbonImmutable::now('Europe/Paris')->addDay();
|
2026-06-14 21:32:07 +02:00
|
|
|
|
|
|
|
|
// WHEN
|
|
|
|
|
$entity = new Shopper(
|
2026-11-17 12:15:39 +01:00
|
|
|
new ShopperId(UuidHelper::v7()),
|
2026-06-14 21:32:07 +02:00
|
|
|
new Email('test@example.com'),
|
|
|
|
|
new Matricule('1234567'),
|
|
|
|
|
'Nom',
|
|
|
|
|
'Prenom',
|
2026-11-16 02:10:50 +01:00
|
|
|
CarbonImmutable::now('Europe/Paris')->subDays(2),
|
2026-06-14 21:32:07 +02:00
|
|
|
$endDate,
|
feat(employees): automated sync with Arcadia API, BO settings, Shopper value objects, and pagination migration
- Implement automated synchronization of employees via Arcadia API (EmployeeSyncService, SynchronizeEmployeesWithArcadiaApi, FetchAndUpsertArcadiaEmployees)
- Add Back-Office application settings for employee sites (Setting singleton, GetSettingsQuery, UpdateSettings, SettingsController, EmployeeSitesInputComponent.vue)
- Strongly type Employee attributes using Domain Value Objects (ShopperEstablishmentCode, ShopperSiteCode, ShopperServiceCode) and Eloquent Casts
- Migrate pagination from Domain to Shared\Pagination namespace across queries and inputs
- Remove legacy and dead CSV employee import/export code
- Restore Domain\Ports\Services\CsvGenerator interface for Regate order generation
- Add comprehensive Pest unit, integration, and feature test coverage
2026-10-01 17:26:30 +02:00
|
|
|
new ShopperEstablishmentCode('ETAB01'),
|
|
|
|
|
new ShopperSiteCode('SITE'),
|
|
|
|
|
new ShopperServiceCode('101')
|
2026-06-14 21:32:07 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// THEN
|
|
|
|
|
expect($entity->isActive())->toBeTrue();
|
|
|
|
|
});
|
|
|
|
|
|
2026-11-15 16:40:00 +01:00
|
|
|
it('is inactive when startDate is in the future', function (): void {
|
|
|
|
|
// GIVEN
|
2026-11-16 02:10:50 +01:00
|
|
|
$startDate = CarbonImmutable::now('Europe/Paris')->addDay();
|
2026-11-15 16:40:00 +01:00
|
|
|
|
|
|
|
|
// WHEN
|
|
|
|
|
$entity = new Shopper(
|
2026-11-17 12:15:39 +01:00
|
|
|
new ShopperId(UuidHelper::v7()),
|
2026-11-15 16:40:00 +01:00
|
|
|
new Email('test@example.com'),
|
|
|
|
|
new Matricule('1234567'),
|
|
|
|
|
'Nom',
|
|
|
|
|
'Prenom',
|
|
|
|
|
$startDate,
|
|
|
|
|
null,
|
|
|
|
|
new ShopperEstablishmentCode('ETAB01'),
|
|
|
|
|
new ShopperSiteCode('SITE'),
|
|
|
|
|
new ShopperServiceCode('101')
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// THEN
|
|
|
|
|
expect($entity->isActive())->toBeFalse();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('is inactive when startDate is in the future even with future endDate', function (): void {
|
|
|
|
|
// GIVEN
|
2026-11-16 02:10:50 +01:00
|
|
|
$startDate = CarbonImmutable::now('Europe/Paris')->addDay();
|
|
|
|
|
$endDate = CarbonImmutable::now('Europe/Paris')->addDays(10);
|
2026-11-15 16:40:00 +01:00
|
|
|
|
|
|
|
|
// WHEN
|
|
|
|
|
$entity = new Shopper(
|
2026-11-17 12:15:39 +01:00
|
|
|
new ShopperId(UuidHelper::v7()),
|
2026-11-15 16:40:00 +01:00
|
|
|
new Email('test@example.com'),
|
|
|
|
|
new Matricule('1234567'),
|
|
|
|
|
'Nom',
|
|
|
|
|
'Prenom',
|
|
|
|
|
$startDate,
|
|
|
|
|
$endDate,
|
|
|
|
|
new ShopperEstablishmentCode('ETAB01'),
|
|
|
|
|
new ShopperSiteCode('SITE'),
|
|
|
|
|
new ShopperServiceCode('101')
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// THEN
|
|
|
|
|
expect($entity->isActive())->toBeFalse();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('is active when startDate equals now and endDate is null', function (): void {
|
|
|
|
|
// GIVEN
|
2026-11-16 02:10:50 +01:00
|
|
|
$now = CarbonImmutable::parse('2026-11-15 00:00:00', 'Europe/Paris');
|
2026-11-15 16:40:00 +01:00
|
|
|
CarbonImmutable::setTestNow($now);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
// WHEN
|
|
|
|
|
$entity = new Shopper(
|
2026-11-17 12:15:39 +01:00
|
|
|
new ShopperId(UuidHelper::v7()),
|
2026-11-15 16:40:00 +01:00
|
|
|
new Email('test@example.com'),
|
|
|
|
|
new Matricule('1234567'),
|
|
|
|
|
'Nom',
|
|
|
|
|
'Prenom',
|
2026-11-16 02:10:50 +01:00
|
|
|
CarbonImmutable::parse('2026-11-15', 'UTC'),
|
2026-11-15 16:40:00 +01:00
|
|
|
null,
|
|
|
|
|
new ShopperEstablishmentCode('ETAB01'),
|
|
|
|
|
new ShopperSiteCode('SITE'),
|
|
|
|
|
new ShopperServiceCode('101')
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// THEN
|
|
|
|
|
expect($entity->isActive())->toBeTrue();
|
|
|
|
|
} finally {
|
|
|
|
|
CarbonImmutable::setTestNow();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('is inactive at the start of endDate', function (): void {
|
|
|
|
|
// GIVEN
|
2026-11-16 02:10:50 +01:00
|
|
|
$now = CarbonImmutable::parse('2026-11-15 00:00:00', 'Europe/Paris');
|
2026-11-15 16:40:00 +01:00
|
|
|
CarbonImmutable::setTestNow($now);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
// WHEN
|
|
|
|
|
$entity = new Shopper(
|
2026-11-17 12:15:39 +01:00
|
|
|
new ShopperId(UuidHelper::v7()),
|
2026-11-15 16:40:00 +01:00
|
|
|
new Email('test@example.com'),
|
|
|
|
|
new Matricule('1234567'),
|
|
|
|
|
'Nom',
|
|
|
|
|
'Prenom',
|
2026-11-16 02:10:50 +01:00
|
|
|
CarbonImmutable::parse('2026-11-01', 'UTC'),
|
|
|
|
|
CarbonImmutable::parse('2026-11-15', 'UTC'),
|
2026-11-15 16:40:00 +01:00
|
|
|
new ShopperEstablishmentCode('ETAB01'),
|
|
|
|
|
new ShopperSiteCode('SITE'),
|
|
|
|
|
new ShopperServiceCode('101')
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// THEN
|
|
|
|
|
expect($entity->isActive())->toBeFalse();
|
|
|
|
|
} finally {
|
|
|
|
|
CarbonImmutable::setTestNow();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2026-11-16 02:10:50 +01:00
|
|
|
it('activates shopper at Europe/Paris midnight even when UTC date is still previous day', function (): void {
|
|
|
|
|
// GIVEN: 2026-05-07 22:30:00 UTC === 2026-05-08 00:30:00 Europe/Paris
|
|
|
|
|
CarbonImmutable::setTestNow(CarbonImmutable::parse('2026-05-07 22:30:00', 'UTC'));
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
$entity = new Shopper(
|
2026-11-17 12:15:39 +01:00
|
|
|
new ShopperId(UuidHelper::v7()),
|
2026-11-16 02:10:50 +01:00
|
|
|
new Email('test@example.com'),
|
|
|
|
|
new Matricule('1234567'),
|
|
|
|
|
'Nom',
|
|
|
|
|
'Prenom',
|
|
|
|
|
CarbonImmutable::parse('2026-05-08', 'UTC'),
|
|
|
|
|
null,
|
|
|
|
|
new ShopperEstablishmentCode('ETAB01'),
|
|
|
|
|
new ShopperSiteCode('SITE'),
|
|
|
|
|
new ShopperServiceCode('101')
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// WHEN & THEN
|
|
|
|
|
expect($entity->isActive())->toBeTrue();
|
|
|
|
|
} finally {
|
|
|
|
|
CarbonImmutable::setTestNow();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('deactivates shopper at Europe/Paris midnight on endDate even when UTC date is still previous day', function (): void {
|
|
|
|
|
// GIVEN: 2026-05-07 22:30:00 UTC === 2026-05-08 00:30:00 Europe/Paris
|
|
|
|
|
CarbonImmutable::setTestNow(CarbonImmutable::parse('2026-05-07 22:30:00', 'UTC'));
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
$entity = new Shopper(
|
2026-11-17 12:15:39 +01:00
|
|
|
new ShopperId(UuidHelper::v7()),
|
2026-11-16 02:10:50 +01:00
|
|
|
new Email('test@example.com'),
|
|
|
|
|
new Matricule('1234567'),
|
|
|
|
|
'Nom',
|
|
|
|
|
'Prenom',
|
|
|
|
|
CarbonImmutable::parse('2026-05-01', 'UTC'),
|
|
|
|
|
CarbonImmutable::parse('2026-05-08', 'UTC'),
|
|
|
|
|
new ShopperEstablishmentCode('ETAB01'),
|
|
|
|
|
new ShopperSiteCode('SITE'),
|
|
|
|
|
new ShopperServiceCode('101')
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// WHEN & THEN
|
|
|
|
|
expect($entity->isActive())->toBeFalse();
|
|
|
|
|
} finally {
|
|
|
|
|
CarbonImmutable::setTestNow();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2026-06-14 21:32:07 +02:00
|
|
|
it('throws exception if nom is empty', function (): void {
|
|
|
|
|
// WHEN
|
|
|
|
|
$action = fn () => new Shopper(
|
2026-11-17 12:15:39 +01:00
|
|
|
new ShopperId(UuidHelper::v7()),
|
2026-06-14 21:32:07 +02:00
|
|
|
new Email('test@example.com'),
|
|
|
|
|
new Matricule('1234567'),
|
|
|
|
|
'',
|
|
|
|
|
'Prenom',
|
|
|
|
|
CarbonImmutable::now()->subDays(2),
|
|
|
|
|
null,
|
feat(employees): automated sync with Arcadia API, BO settings, Shopper value objects, and pagination migration
- Implement automated synchronization of employees via Arcadia API (EmployeeSyncService, SynchronizeEmployeesWithArcadiaApi, FetchAndUpsertArcadiaEmployees)
- Add Back-Office application settings for employee sites (Setting singleton, GetSettingsQuery, UpdateSettings, SettingsController, EmployeeSitesInputComponent.vue)
- Strongly type Employee attributes using Domain Value Objects (ShopperEstablishmentCode, ShopperSiteCode, ShopperServiceCode) and Eloquent Casts
- Migrate pagination from Domain to Shared\Pagination namespace across queries and inputs
- Remove legacy and dead CSV employee import/export code
- Restore Domain\Ports\Services\CsvGenerator interface for Regate order generation
- Add comprehensive Pest unit, integration, and feature test coverage
2026-10-01 17:26:30 +02:00
|
|
|
new ShopperEstablishmentCode('ETAB01'),
|
|
|
|
|
new ShopperSiteCode('SITE'),
|
|
|
|
|
new ShopperServiceCode('101')
|
2026-06-14 21:32:07 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// THEN
|
|
|
|
|
expect($action)->toThrow(\DomainException::class, 'nom cannot be empty');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('throws exception if prenom is empty', function (): void {
|
|
|
|
|
// WHEN
|
|
|
|
|
$action = fn () => new Shopper(
|
2026-11-17 12:15:39 +01:00
|
|
|
new ShopperId(UuidHelper::v7()),
|
2026-06-14 21:32:07 +02:00
|
|
|
new Email('test@example.com'),
|
|
|
|
|
new Matricule('1234567'),
|
|
|
|
|
'Nom',
|
|
|
|
|
'',
|
|
|
|
|
CarbonImmutable::now()->subDays(2),
|
|
|
|
|
null,
|
feat(employees): automated sync with Arcadia API, BO settings, Shopper value objects, and pagination migration
- Implement automated synchronization of employees via Arcadia API (EmployeeSyncService, SynchronizeEmployeesWithArcadiaApi, FetchAndUpsertArcadiaEmployees)
- Add Back-Office application settings for employee sites (Setting singleton, GetSettingsQuery, UpdateSettings, SettingsController, EmployeeSitesInputComponent.vue)
- Strongly type Employee attributes using Domain Value Objects (ShopperEstablishmentCode, ShopperSiteCode, ShopperServiceCode) and Eloquent Casts
- Migrate pagination from Domain to Shared\Pagination namespace across queries and inputs
- Remove legacy and dead CSV employee import/export code
- Restore Domain\Ports\Services\CsvGenerator interface for Regate order generation
- Add comprehensive Pest unit, integration, and feature test coverage
2026-10-01 17:26:30 +02:00
|
|
|
new ShopperEstablishmentCode('ETAB01'),
|
|
|
|
|
new ShopperSiteCode('SITE'),
|
|
|
|
|
new ShopperServiceCode('101')
|
2026-06-14 21:32:07 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// THEN
|
|
|
|
|
expect($action)->toThrow(\DomainException::class, 'prenom cannot be empty');
|
|
|
|
|
});
|
|
|
|
|
});
|