diff --git a/modules/opd_presentations/tests/src/Functional/Entity/PresentationTest.php b/modules/opd_presentations/tests/src/Functional/Entity/PresentationTest.php index 7e9dcf5ec..478f06b69 100644 --- a/modules/opd_presentations/tests/src/Functional/Entity/PresentationTest.php +++ b/modules/opd_presentations/tests/src/Functional/Entity/PresentationTest.php @@ -15,9 +15,9 @@ final class PresentationTest extends ExistingSiteBase { public function test_only_past_events_are_returned(): void { $presentation = $this->createPresentation( events: [ - $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')]), + $this->createEvent(['field_date' => (new DrupalDateTime('now'))->getTimestamp()]), + $this->createEvent(['field_date' => (new DrupalDateTime('yesterday'))->getTimestamp()]), + $this->createEvent(['field_date' => (new DrupalDateTime('tomorrow'))->getTimestamp()]), ], );