Skip to content

Commit

Permalink
[RemoteEvent] Fix date parsing in test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Apr 24, 2024
1 parent 3903840 commit 3f99189
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
'ip' => '127.0.0.1',
'url' => 'https://www.mailersend.com'
]);
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u\Z', '2024-01-01T12:00:00.000000Z'));
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u', '2024-01-01T12:00:00.000000', new DateTimeZone('UTC')));

return $wh;
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
'ip' => '127.0.0.1',
'url' => 'https://www.mailersend.com'
]);
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u\Z', '2024-01-01T12:00:00.000000Z'));
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u', '2024-01-01T12:00:00.000000', new DateTimeZone('UTC')));

return $wh;
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
$wh->setTags(["test-tag"]);
$wh->setMetadata([]);
$wh->setReason('');
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u\Z', '2024-01-01T12:00:00.000000Z'));
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u', '2024-01-01T12:00:00.000000', new DateTimeZone('UTC')));

return $wh;
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
$wh->setTags(["test-tag"]);
$wh->setMetadata([]);
$wh->setReason('Host or domain name not found');
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u\Z', '2024-01-01T12:00:00.000000Z'));
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u', '2024-01-01T12:00:00.000000', new DateTimeZone('UTC')));

return $wh;
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
$wh->setMetadata([
'ip' => '127.0.0.1'
]);
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u\Z', '2024-01-01T12:00:00.000000Z'));
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u', '2024-01-01T12:00:00.000000', new DateTimeZone('UTC')));

return $wh;
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
$wh->setMetadata([
'ip' => '127.0.0.1'
]);
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u\Z', '2024-01-01T12:00:00.000000Z'));
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u', '2024-01-01T12:00:00.000000', new DateTimeZone('UTC')));

return $wh;
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
$wh->setTags(["test-tag"]);
$wh->setMetadata([]);
$wh->setReason('');
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u\Z', '2024-01-01T12:00:00.000000Z'));
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u', '2024-01-01T12:00:00.000000', new DateTimeZone('UTC')));

return $wh;
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
$wh->setTags(["test-tag"]);
$wh->setMetadata([]);
$wh->setReason('Unknown reason');
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u\Z', '2024-01-01T12:00:00.000000Z'));
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u', '2024-01-01T12:00:00.000000', new DateTimeZone('UTC')));

return $wh;
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
$wh->setRecipientEmail('test@example.com');
$wh->setTags(["test-tag"]);
$wh->setMetadata([]);
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u\Z', '2024-01-01T12:00:00.000000Z'));
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u', '2024-01-01T12:00:00.000000', new DateTimeZone('UTC')));

return $wh;
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
'reason' => 'NO_LONGER_WANT',
'readable_reason' => 'I no longer want to receive these emails'
]);
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u\Z', '2024-01-01T12:00:00.000000Z'));
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u', '2024-01-01T12:00:00.000000', new DateTimeZone('UTC')));

return $wh;
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
],
]);
$wh->setReason('');
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u\Z', '2024-04-08T09:43:09.500000Z'));
$wh->setDate(\DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u', '2024-04-08T09:43:09.500000', new DateTimeZone('UTC')));

return $wh;

0 comments on commit 3f99189

Please sign in to comment.