Skip to content

Commit

Permalink
queue consumer options
Browse files Browse the repository at this point in the history
  • Loading branch information
ASKozienko committed Sep 11, 2017
1 parent e850510 commit 812a069
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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([]);
Expand Down

0 comments on commit 812a069

Please sign in to comment.