From e5b1dab41c8baf470b6f6634388610d3494dfe68 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Wed, 27 Mar 2024 17:28:53 +0100 Subject: [PATCH] fix time entry endpoint tests to represent string based only_full_dates query parameter --- tests/Unit/Endpoint/Api/V1/TimeEntryEndpointTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Unit/Endpoint/Api/V1/TimeEntryEndpointTest.php b/tests/Unit/Endpoint/Api/V1/TimeEntryEndpointTest.php index f78ce083..e9826f26 100644 --- a/tests/Unit/Endpoint/Api/V1/TimeEntryEndpointTest.php +++ b/tests/Unit/Endpoint/Api/V1/TimeEntryEndpointTest.php @@ -165,7 +165,7 @@ public function test_index_endpoint_filter_only_full_dates_returns_time_entries_ // Act $response = $this->getJson(route('api.v1.time-entries.index', [ $data->organization->getKey(), - 'only_full_dates' => true, + 'only_full_dates' => 'true', 'limit' => 5, 'user_id' => $data->user->getKey(), ])); @@ -192,7 +192,7 @@ public function test_index_endpoint_filter_only_full_dates_returns_time_entries_ // Act $response = $this->getJson(route('api.v1.time-entries.index', [ $data->organization->getKey(), - 'only_full_dates' => true, + 'only_full_dates' => 'true', 'limit' => 5, 'user_id' => $data->user->getKey(), ])); @@ -216,7 +216,7 @@ public function test_index_endpoint_filter_only_full_dates_returns_time_entries_ // Act $response = $this->getJson(route('api.v1.time-entries.index', [ $data->organization->getKey(), - 'only_full_dates' => true, + 'only_full_dates' => 'true', 'limit' => 5, 'user_id' => $data->user->getKey(), ]));