Skip to content

Commit ad3782e

Browse files
committed
queue consumer options
1 parent 2deab7e commit ad3782e

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎pkg/enqueue/Tests/Symfony/Client/ConsumeMessagesCommandTest.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,13 @@ public function testShouldHaveExpectedOptions()
6161

6262
$options = $command->getDefinition()->getOptions();
6363

64-
$this->assertCount(4, $options);
64+
$this->assertCount(6, $options);
6565
$this->assertArrayHasKey('memory-limit', $options);
6666
$this->assertArrayHasKey('message-limit', $options);
6767
$this->assertArrayHasKey('time-limit', $options);
6868
$this->assertArrayHasKey('setup-broker', $options);
69+
$this->assertArrayHasKey('idle-timeout', $options);
70+
$this->assertArrayHasKey('receive-timeout', $options);
6971
}
7072

7173
public function testShouldHaveExpectedAttributes()

‎pkg/enqueue/Tests/Symfony/Consumption/ConsumeMessagesCommandTest.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ public function testShouldHaveExpectedOptions()
2929

3030
$options = $command->getDefinition()->getOptions();
3131

32-
$this->assertCount(3, $options);
32+
$this->assertCount(5, $options);
3333
$this->assertArrayHasKey('memory-limit', $options);
3434
$this->assertArrayHasKey('message-limit', $options);
3535
$this->assertArrayHasKey('time-limit', $options);
36+
$this->assertArrayHasKey('idle-timeout', $options);
37+
$this->assertArrayHasKey('receive-timeout', $options);
3638
}
3739

3840
public function testShouldHaveExpectedAttributes()

‎pkg/enqueue/Tests/Symfony/Consumption/ContainerAwareConsumeMessagesCommandTest.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ public function testShouldHaveExpectedOptions()
3333

3434
$options = $command->getDefinition()->getOptions();
3535

36-
$this->assertCount(4, $options);
36+
$this->assertCount(6, $options);
3737
$this->assertArrayHasKey('memory-limit', $options);
3838
$this->assertArrayHasKey('message-limit', $options);
3939
$this->assertArrayHasKey('time-limit', $options);
4040
$this->assertArrayHasKey('queue', $options);
41+
$this->assertArrayHasKey('idle-timeout', $options);
42+
$this->assertArrayHasKey('receive-timeout', $options);
4143
}
4244

4345
public function testShouldHaveExpectedAttributes()

0 commit comments

Comments
 (0)