Skip to content

Commit ef1253b

Browse files
committed
Fix tests
1 parent 14d0fcf commit ef1253b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordOptionsTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\Notifier\Bridge\Discord\Tests;
1313

14+
use DateTimeZone;
1415
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\Notifier\Bridge\Discord\DiscordOptions;
1617
use Symfony\Component\Notifier\Bridge\Discord\Embeds\DiscordAuthorEmbedObject;
@@ -40,14 +41,14 @@ public function testDiscordEmbedFields(): void
4041
->addEmbed((new DiscordEmbed())
4142
->description('descript.io')
4243
->url('http://ava.tar/pic.png')
43-
->timestamp(new \DateTime('2020-10-12 9:14:15'))
44+
->timestamp(new \DateTime('2020-10-12 9:14:15+0000'))
4445
->color(2021216)
4546
->title('New song added!')
4647
)
4748
->addEmbed((new DiscordEmbed())
4849
->description('descript.io 2')
4950
->url('http://ava.tar/pic.png')
50-
->timestamp(new \DateTime('2020-10-12 9:14:15'))
51+
->timestamp(new \DateTime('2020-10-12 9:14:15+0000'))
5152
->color(2021216)
5253
->title('New song added!')
5354
);
@@ -75,7 +76,7 @@ public function testDiscordEmbedFields(): void
7576
->addEmbed((new DiscordEmbed())
7677
->description('descript.io')
7778
->url('http://ava.tar/pic.png')
78-
->timestamp(new \DateTime('2020-10-12 9:14:15'))
79+
->timestamp(new \DateTime('2020-10-12 9:14:15+0000'))
7980
->color(2021216)
8081
->title('New song added!')
8182
->footer(

0 commit comments

Comments
 (0)