Corriger les dossiers animaux et le suivi médical
This commit is contained in:
parent
a55d27935f
commit
7b89fd5dfa
34 changed files with 440 additions and 39 deletions
|
|
@ -408,7 +408,8 @@ try {
|
|||
$alerts = NotificationService::alerts();
|
||||
$assert((bool) array_filter($alerts, static fn($x) => $x['key'] === 'vaccines'));
|
||||
});
|
||||
$test('Les rappels vaccinaux apparaissent automatiquement dans l’agenda', function () use ($assert): void {
|
||||
$test('Les rappels vaccinaux apparaissent automatiquement dans l’agenda', function () use ($db, $assert): void {
|
||||
$db->exec("UPDATE vaccinations SET due_date=date('now') WHERE animal_id=(SELECT id FROM animals WHERE internal_code='TEST-001')");
|
||||
$month = AgendaService::month(new DateTimeImmutable('first day of this month'));
|
||||
$reminders = array_values(
|
||||
array_filter(
|
||||
|
|
|
|||
Loading…
Reference in a new issue