From 1a0444800563313fa1bb3faefa94632c007545fe Mon Sep 17 00:00:00 2001 From: Holger Veltrup Date: Wed, 27 Nov 2024 13:09:45 +0100 Subject: [PATCH] fix: tests after atoolo-events-calendar-bundle changes --- test/GraphQL/Test.php | 2 +- .../resources/002-filter/searchByAbsoluteDateRange.graphql | 2 +- .../002-filter/searchByAbsoluteDateRange.result.json | 5 +++-- .../resources/002-filter/searchByRelativeDateRange.graphql | 2 +- .../002-filter/searchByRelativeDateRange.result.json | 6 +++--- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/test/GraphQL/Test.php b/test/GraphQL/Test.php index eb1b4f0..c588db9 100644 --- a/test/GraphQL/Test.php +++ b/test/GraphQL/Test.php @@ -102,7 +102,7 @@ public function test( $messages = array_map( static fn($error) => $error['message'] . - "\npath: " . implode('/', $error['path']), + "\npath: " . (is_array($error['path']) ? implode('/', $error['path']) : $error['path']), $response->getErrors(), ); $this->fail( diff --git a/test/GraphQL/resources/002-filter/searchByAbsoluteDateRange.graphql b/test/GraphQL/resources/002-filter/searchByAbsoluteDateRange.graphql index 7e51c16..1aae75b 100644 --- a/test/GraphQL/resources/002-filter/searchByAbsoluteDateRange.graphql +++ b/test/GraphQL/resources/002-filter/searchByAbsoluteDateRange.graphql @@ -20,7 +20,7 @@ query search { isFullDay hasStartTime hasEndTime - } + } } } } diff --git a/test/GraphQL/resources/002-filter/searchByAbsoluteDateRange.result.json b/test/GraphQL/resources/002-filter/searchByAbsoluteDateRange.result.json index 0f13138..cbcd72d 100644 --- a/test/GraphQL/resources/002-filter/searchByAbsoluteDateRange.result.json +++ b/test/GraphQL/resources/002-filter/searchByAbsoluteDateRange.result.json @@ -13,11 +13,12 @@ "rRule": null, "isFullDay": false, "hasStartTime": true, - "hasEndTime": true + "hasEndTime": true, + "rRule": null } ] } } ] } -} \ No newline at end of file +} diff --git a/test/GraphQL/resources/002-filter/searchByRelativeDateRange.graphql b/test/GraphQL/resources/002-filter/searchByRelativeDateRange.graphql index 50f501f..d1138b0 100644 --- a/test/GraphQL/resources/002-filter/searchByRelativeDateRange.graphql +++ b/test/GraphQL/resources/002-filter/searchByRelativeDateRange.graphql @@ -21,7 +21,7 @@ query search { isFullDay hasStartTime hasEndTime - } + } } } } diff --git a/test/GraphQL/resources/002-filter/searchByRelativeDateRange.result.json b/test/GraphQL/resources/002-filter/searchByRelativeDateRange.result.json index 0f13138..9a770be 100644 --- a/test/GraphQL/resources/002-filter/searchByRelativeDateRange.result.json +++ b/test/GraphQL/resources/002-filter/searchByRelativeDateRange.result.json @@ -10,14 +10,14 @@ { "start": "2022-12-16T16:00:00+01:00", "end": "2022-12-16T23:59:00+01:00", - "rRule": null, "isFullDay": false, "hasStartTime": true, - "hasEndTime": true + "hasEndTime": true, + "rRule": null } ] } } ] } -} \ No newline at end of file +}