@@ -209,60 +209,6 @@ public function testSetsParametersOnTheQueueAndExchange()
209
209
$ connection ->publish ('body ' );
210
210
}
211
211
212
- public function testSetsMaxPriorityArgumentForQueueWithEnabledPriority ()
213
- {
214
- $ factory = new TestAmqpFactory (
215
- $ amqpConnection = $ this ->createMock (\AMQPConnection::class),
216
- $ amqpChannel = $ this ->createMock (\AMQPChannel::class),
217
- $ amqpQueue = $ this ->createMock (\AMQPQueue::class),
218
- $ amqpExchange = $ this ->createMock (\AMQPExchange::class)
219
- );
220
-
221
- $ amqpQueue ->expects ($ this ->once ())->method ('setArguments ' )->with ([
222
- 'x-max-priority ' => 255 ,
223
- ]);
224
-
225
- $ dsn = 'amqp://localhost/%2f/messages? ' .
226
- 'queues[messages][prioritized]=true ' ;
227
- $ connection = Connection::fromDsn ($ dsn , [
228
- 'queues ' => [
229
- 'messages ' => [
230
- 'prioritized ' => 'true ' ,
231
- ],
232
- ],
233
- ], $ factory );
234
- $ connection ->publish ('body ' );
235
- }
236
-
237
- public function testDoesNotOverrideMaxPriorityArgumentForQueueWithEnabledPriority ()
238
- {
239
- $ factory = new TestAmqpFactory (
240
- $ amqpConnection = $ this ->createMock (\AMQPConnection::class),
241
- $ amqpChannel = $ this ->createMock (\AMQPChannel::class),
242
- $ amqpQueue = $ this ->createMock (\AMQPQueue::class),
243
- $ amqpExchange = $ this ->createMock (\AMQPExchange::class)
244
- );
245
-
246
- $ amqpQueue ->expects ($ this ->once ())->method ('setArguments ' )->with ([
247
- 'x-max-priority ' => 127 ,
248
- ]);
249
-
250
- $ dsn = 'amqp://localhost/%2f/messages? ' .
251
- 'queues[messages][prioritized]=true& ' .
252
- 'queues[messages][arguments][x-max-priority]=127 ' ;
253
- $ connection = Connection::fromDsn ($ dsn , [
254
- 'queues ' => [
255
- 'messages ' => [
256
- 'prioritized ' => 'true ' ,
257
- 'arguments ' => [
258
- 'x-max-priority ' => '127 ' ,
259
- ],
260
- ],
261
- ],
262
- ], $ factory );
263
- $ connection ->publish ('body ' );
264
- }
265
-
266
212
public function invalidQueueArgumentsDataProvider (): iterable
267
213
{
268
214
$ baseDsn = 'amqp://localhost/%2f/messages ' ;
0 commit comments