@@ -178,23 +178,15 @@ public static function providerWillNotify(): array {
178178 'last ' => (clone $ now )->modify ('-2 days ' ),
179179 'total ' => 1 ,
180180 ],
181- 'now ' => $ now , 'daysBefore ' => 1 , 'daysBetween ' => 0 , 'max ' => 5 , true ,
181+ 'now ' => $ now , 'daysBefore ' => 1 , 'daysBetween ' => 1 , 'max ' => 5 , true ,
182182 ],
183183 'one notification, should not send with daysBefore <= 0 ' => [
184184 [
185185 'first ' => (clone $ now )->modify ('-1 day ' ),
186186 'last ' => (clone $ now )->modify ('-1 day ' ),
187187 'total ' => 1 ,
188188 ],
189- 'now ' => $ now , 'daysBefore ' => 1 , 'daysBetween ' => 0 , 'max ' => 5 , false ,
190- ],
191- 'two notifications, should not send with between === 1 and last === 1 ' => [
192- [
193- 'first ' => (clone $ now )->modify ('-3 days ' ),
194- 'last ' => (clone $ now )->modify ('-1 day ' ),
195- 'total ' => 2 ,
196- ],
197- 'now ' => $ now , 'daysBefore ' => 1 , 'daysBetween ' => 1 , 'max ' => 5 , false ,
189+ 'now ' => $ now , 'daysBefore ' => 0 , 'daysBetween ' => 1 , 'max ' => 5 , false ,
198190 ],
199191 'two notifications, should send with between === 1 and last === 2 ' => [
200192 [
@@ -226,7 +218,7 @@ public static function providerWillNotify(): array {
226218 'last ' => (clone $ now )->modify ('-1 day ' ),
227219 'total ' => 2 ,
228220 ],
229- 'now ' => $ now , 'daysBefore ' => 0 , 'daysBetween ' => 1 , 'max ' => 5 , false ,
221+ 'now ' => $ now , 'daysBefore ' => 0 , 'daysBetween ' => 0 , 'max ' => 5 , false ,
230222 ],
231223 ];
232224 }
0 commit comments