Compare commits

...

2 Commits

Author SHA1 Message Date
philipp lang ac45e0c8fa Fix tests
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2024-07-25 12:53:40 +02:00
philipp lang 6f1ab73bae Update changelog 2024-07-25 11:14:43 +02:00
2 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Letzte Änderungen # Letzte Änderungen
### 1.10.14
- Fixed: Ist eine Präventionsschulung älter als 5 Jahre, so ist nur eine Auffrischungs-Schulung erforderlich
### 1.10.13 ### 1.10.13
- Bei Veranstaltungs-Übersicht alle Veranstaltungen anzeigen - Bei Veranstaltungs-Übersicht alle Veranstaltungen anzeigen

View File

@ -136,10 +136,15 @@ class PreventionTest extends TestCase
]; ];
yield [ yield [
'attrs' => ['has_vk' => true, 'efz' => now(), 'ps_at' => now()->subYears(5)->subDay()], 'attrs' => ['has_vk' => true, 'efz' => now(), 'ps_at' => null],
'preventions' => [Prevention::PS] 'preventions' => [Prevention::PS]
]; ];
yield [
'attrs' => ['has_vk' => true, 'efz' => now(), 'ps_at' => now()->subYears(5)->subDay()],
'preventions' => [Prevention::MOREPS]
];
yield [ yield [
'attrs' => ['has_vk' => true, 'efz' => now(), 'ps_at' => now()->subYears(5)->subDay(), 'more_ps_at' => now()], 'attrs' => ['has_vk' => true, 'efz' => now(), 'ps_at' => now()->subYears(5)->subDay(), 'more_ps_at' => now()],
'preventions' => [] 'preventions' => []