From 3eda366625d1bf43f494f15ddf33e1268e0f023c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 11 Jun 2025 09:08:52 +0100 Subject: [PATCH] Fix test --- .../tests/src/DrupalTestTraits/Entity/PresentationTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/opd_presentations/tests/src/DrupalTestTraits/Entity/PresentationTest.php b/modules/opd_presentations/tests/src/DrupalTestTraits/Entity/PresentationTest.php index 968dcc2f7..47c8f679f 100644 --- a/modules/opd_presentations/tests/src/DrupalTestTraits/Entity/PresentationTest.php +++ b/modules/opd_presentations/tests/src/DrupalTestTraits/Entity/PresentationTest.php @@ -15,7 +15,7 @@ final class PresentationTest extends ExistingSiteBase { public function test_only_past_events_are_returned(): void { $presentation = $this->createPresentation( events: [ - $this->createEvent(['field_date' => (new DrupalDateTime('today'))->format('U')]), + $this->createEvent(['field_date' => (new DrupalDateTime('now'))->format('U')]), $this->createEvent(['field_date' => (new DrupalDateTime('yesterday'))->format('U')]), $this->createEvent(['field_date' => (new DrupalDateTime('tomorrow'))->format('U')]), ],