From 236d6fa6be3272bdd7ef1f6d4c5724eccae57449 Mon Sep 17 00:00:00 2001 From: Corey Date: Tue, 30 Jan 2024 19:10:15 -0800 Subject: [PATCH 1/2] Update NotificationsClientTest.php --- .../Resources/Notifications/NotificationsClientTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Functional/Resources/Notifications/NotificationsClientTest.php b/tests/Functional/Resources/Notifications/NotificationsClientTest.php index 9789504..8246c3d 100644 --- a/tests/Functional/Resources/Notifications/NotificationsClientTest.php +++ b/tests/Functional/Resources/Notifications/NotificationsClientTest.php @@ -124,9 +124,9 @@ public static function listOperationsProvider(): \Generator ]; yield 'From Filtered' => [ - new ListNotifications(to: new \DateTime('2023-12-25T00:00:00.000Z')), + new ListNotifications(from: new \DateTime('2023-12-25T00:00:00.000Z')), new Response(200, body: self::readRawJsonFixture('response/list_default')), - sprintf('%s/notifications?to=2023-12-25T00:00:00.000000Z', Environment::SANDBOX->baseUrl()), + sprintf('%s/notifications?from=2023-12-25T00:00:00.000000Z', Environment::SANDBOX->baseUrl()), ]; yield 'To and From Filtered' => [ From ef199ccb18274f4bb5f6deaef1553a84bc65f912 Mon Sep 17 00:00:00 2001 From: Corey Date: Tue, 30 Jan 2024 19:15:35 -0800 Subject: [PATCH 2/2] Update NotificationsClientTest.php actual date also needed updating, based on the to & from test's dates below --- .../Resources/Notifications/NotificationsClientTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Functional/Resources/Notifications/NotificationsClientTest.php b/tests/Functional/Resources/Notifications/NotificationsClientTest.php index 8246c3d..15ad1b5 100644 --- a/tests/Functional/Resources/Notifications/NotificationsClientTest.php +++ b/tests/Functional/Resources/Notifications/NotificationsClientTest.php @@ -124,9 +124,9 @@ public static function listOperationsProvider(): \Generator ]; yield 'From Filtered' => [ - new ListNotifications(from: new \DateTime('2023-12-25T00:00:00.000Z')), + new ListNotifications(from: new \DateTime('2023-12-24T00:00:00.000Z')), new Response(200, body: self::readRawJsonFixture('response/list_default')), - sprintf('%s/notifications?from=2023-12-25T00:00:00.000000Z', Environment::SANDBOX->baseUrl()), + sprintf('%s/notifications?from=2023-12-24T00:00:00.000000Z', Environment::SANDBOX->baseUrl()), ]; yield 'To and From Filtered' => [