Skip to content

Commit 843bfcf

Browse files
committed
[Notifier] [Mercure] Add options - Test repair
1 parent e20b527 commit 843bfcf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Component/Notifier/Bridge/Mercure/Tests/MercureTransportTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,10 @@ public function testSendWithMercureOptions()
114114
{
115115
$hub = new MockHub('https://foo.com/.well-known/mercure', new StaticTokenProvider('foo'), function (Update $update): string {
116116
$this->assertSame(['/topic/1', '/topic/2'], $update->getTopics());
117-
$this->assertSame('{"@context":"https:\/\/www.w3.org\/ns\/activitystreams","type":"Announce","summary":"subject","mediaType":"application\/json","content":null}', $update->getData());
117+
$this->assertSame('{"@context":"https:\/\/www.w3.org\/ns\/activitystreams","type":"Announce","summary":"subject","mediaType":"application\/json","content":{"tag":"1234","body":"TEST"}}', $update->getData());
118118
$this->assertSame('id', $update->getId());
119119
$this->assertSame('type', $update->getType());
120120
$this->assertSame(1, $update->getRetry());
121-
$this->assertSame(['tag' => '1234', 'body' => 'TEST'], $update->getContent());
122121
$this->assertTrue($update->isPrivate());
123122

124123
return 'id';

0 commit comments

Comments
 (0)