test that all nodes up until given date are returned

This commit is contained in:
Yisroel Baum 2026-04-28 22:48:25 +03:00
parent 2047cd72e7
commit ec4dca87a6
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 22 additions and 4 deletions

View file

@ -27,8 +27,7 @@ class GetTodaysSchedule
return array_filter(
$scheduledNodes,
function (ScheduledNode $node) use ($date) {
return $node->getDate()->format('Y-m-d')
=== $date->format('Y-m-d');
return $node->getDate() <= $date;
}
);
}