Skip to content

Commit

Permalink
added weekly & daily testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
hansmorb committed Jun 21, 2024
1 parent 9d18b3f commit 98e1679
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/php/View/CalendarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,19 @@ public function provideGetClosestBookableTimeFrameForToday() {
"repetition_end" => strtotime( "+21 days", $currentTimestamp ),
]
],
"weekly and daily" => [
"closest" => [
"repetition" => "w",
"repetition_start" => strtotime( "-64 days", $currentTimestamp ),
"repetition_end" => strtotime( "+199 days", $currentTimestamp ),
"weekdays" => [ "1", "2", "3", "4", "5" ]
],
"other" => [
"repetition" => "d",
"repetition_start" => strtotime( "+21 days", $currentTimestamp ),
"repetition_end" => strtotime( "+21 days", $currentTimestamp )
]
],
"daily overlap with different times (present)" => [
"closest" => [
"repetition" => "d",
Expand Down

0 comments on commit 98e1679

Please sign in to comment.