Skip to content

Commit 812a069

Browse files
committed
queue consumer options
1 parent e850510 commit 812a069

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

pkg/enqueue-bundle/Tests/Unit/DependencyInjection/ConfigurationTest.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,23 @@ public function testShouldAllowEnableAsyncEvents()
424424
], $config);
425425
}
426426

427+
public function testShouldSetDefaultConfigurationForConsumption()
428+
{
429+
$configuration = new Configuration([]);
430+
431+
$processor = new Processor();
432+
$config = $processor->processConfiguration($configuration, [[
433+
'transport' => [],
434+
]]);
435+
436+
$this->assertArraySubset([
437+
'consumption' => [
438+
'idle_timeout' => 0,
439+
'receive_timeout' => 100,
440+
],
441+
], $config);
442+
}
443+
427444
public function testShouldAllowConfigureConsumption()
428445
{
429446
$configuration = new Configuration([]);

0 commit comments

Comments
 (0)