From ac45e0c8fad2cc319d1fcc054ab771d58958fd54 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 25 Jul 2024 12:53:40 +0200 Subject: [PATCH] Fix tests --- tests/Feature/Member/PreventionTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/Feature/Member/PreventionTest.php b/tests/Feature/Member/PreventionTest.php index 006b0b52..3e74b3d5 100644 --- a/tests/Feature/Member/PreventionTest.php +++ b/tests/Feature/Member/PreventionTest.php @@ -136,10 +136,15 @@ class PreventionTest extends TestCase ]; 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] ]; + yield [ + 'attrs' => ['has_vk' => true, 'efz' => now(), 'ps_at' => now()->subYears(5)->subDay()], + 'preventions' => [Prevention::MOREPS] + ]; + yield [ 'attrs' => ['has_vk' => true, 'efz' => now(), 'ps_at' => now()->subYears(5)->subDay(), 'more_ps_at' => now()], 'preventions' => []