Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e16053

Browse files
committed
update test case for custom queue options
1 parent 4532319 commit 5e16053

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Messenger/Tests/Transport/AmqpExt/ConnectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ public function testPublishWithQueueOptions()
246246
'type' => '*',
247247
];
248248
$amqpExchange->expects($this->once())->method('publish')
249-
->with('body', null, 1, ['delivery_mode' => 2, 'headers' => $headers]);
249+
->with('body', null, 1, ['delivery_mode' => 2, 'headers' => ['token' => 'uuid', 'type' => '*']]);
250250

251-
$connection = Connection::fromDsn('amqp://localhost/%2f/messages?queue[attributes][delivery_mode]=2&queue[flags]=1', [], true, $factory);
251+
$connection = Connection::fromDsn('amqp://localhost/%2f/messages?queue[attributes][delivery_mode]=2&queue[attributes][headers][token]=uuid&queue[flags]=1', [], true, $factory);
252252
$connection->publish('body', $headers);
253253
}
254254
}

0 commit comments

Comments
 (0)