test that todays schedule only returns uncompleted nodes

This commit is contained in:
Yisroel Baum 2026-05-01 09:06:13 +03:00
parent 8eeff2c4fe
commit e04931ac08
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 25 additions and 1 deletions

View file

@ -27,7 +27,8 @@ class GetTodaysSchedule
return array_filter(
$scheduledNodes,
function (ScheduledNode $node) use ($date) {
return $node->getDate() <= $date;
return $node->getDate() <= $date
&& $node->getCompleted() === false;
}
);
}