Use getTimestamp()
method
This commit is contained in:
parent
7ad811d2cb
commit
3c4b053e0e
1 changed files with 3 additions and 3 deletions
|
@ -15,9 +15,9 @@ final class PresentationTest extends ExistingSiteBase {
|
||||||
public function test_only_past_events_are_returned(): void {
|
public function test_only_past_events_are_returned(): void {
|
||||||
$presentation = $this->createPresentation(
|
$presentation = $this->createPresentation(
|
||||||
events: [
|
events: [
|
||||||
$this->createEvent(['field_date' => (new DrupalDateTime('now'))->format('U')]),
|
$this->createEvent(['field_date' => (new DrupalDateTime('now'))->getTimestamp()]),
|
||||||
$this->createEvent(['field_date' => (new DrupalDateTime('yesterday'))->format('U')]),
|
$this->createEvent(['field_date' => (new DrupalDateTime('yesterday'))->getTimestamp()]),
|
||||||
$this->createEvent(['field_date' => (new DrupalDateTime('tomorrow'))->format('U')]),
|
$this->createEvent(['field_date' => (new DrupalDateTime('tomorrow'))->getTimestamp()]),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue