Skip to content

Commit

Permalink
fix(ZMS-3253): try fixing availability mockdata for testRendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Fink authored and Tom Fink committed Nov 15, 2024
1 parent c02e4e3 commit c75e3c4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions zmsapi/tests/Zmsapi/AvailabilityUpdateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ public function testRendering()
'__body' => json_encode([
'availabilityList' => [
[
"id" => $entity->getId(),
"description" => "Updated availability",
"startDate" => $input['startDate'],
"endDate" => $input['endDate'],
"startTime" => $input['startTime'],
"endTime" => $input['endTime'],
"kind" => $input['kind'],
"scope" => ["id" => 312]
"id" => 21202,
"description" => "Test Öffnungszeit update",
"startDate" => time() + (2 * 24 * 60 * 60), // 2 days in the future
"endDate" => time() + (5 * 24 * 60 * 60), // 5 days in the future
"startTime" => "09:00:00",
"endTime" => "17:00:00",
"kind" => "default",
"scope" => [
"id" => 312
]
]
],
'selectedDate' => date('Y-m-d')
Expand Down

0 comments on commit c75e3c4

Please sign in to comment.