From 812a069c2de04ea3fb631b9b53ecfcd52e33ce35 Mon Sep 17 00:00:00 2001 From: Alexander Kozienko Date: Mon, 11 Sep 2017 09:24:47 +0300 Subject: [PATCH] queue consumer options --- .../DependencyInjection/ConfigurationTest.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkg/enqueue-bundle/Tests/Unit/DependencyInjection/ConfigurationTest.php b/pkg/enqueue-bundle/Tests/Unit/DependencyInjection/ConfigurationTest.php index 8d8ba99cc..81be3a44c 100644 --- a/pkg/enqueue-bundle/Tests/Unit/DependencyInjection/ConfigurationTest.php +++ b/pkg/enqueue-bundle/Tests/Unit/DependencyInjection/ConfigurationTest.php @@ -424,6 +424,23 @@ public function testShouldAllowEnableAsyncEvents() ], $config); } + public function testShouldSetDefaultConfigurationForConsumption() + { + $configuration = new Configuration([]); + + $processor = new Processor(); + $config = $processor->processConfiguration($configuration, [[ + 'transport' => [], + ]]); + + $this->assertArraySubset([ + 'consumption' => [ + 'idle_timeout' => 0, + 'receive_timeout' => 100, + ], + ], $config); + } + public function testShouldAllowConfigureConsumption() { $configuration = new Configuration([]);