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')]), ],