test that todays schedule only returns uncompleted nodes
This commit is contained in:
parent
8eeff2c4fe
commit
e04931ac08
2 changed files with 25 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue