Skip to content

Commit 312eff8

Browse files
committed
[Tests] Added test when a storage section is not defined
1 parent ed0ae22 commit 312eff8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Tests/DependencyInjection/QueueExtensionTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,21 @@ public function testHasServices()
2525
}
2626
}
2727

28+
public function testInvalidStorageSection()
29+
{
30+
$extension = new QueueExtension();
31+
$container = new ContainerBuilder();
32+
33+
$this->expectException(\InvalidArgumentException::class);
34+
35+
$extension->load(['sb_queue' => [
36+
'service' => [
37+
'storage' => 'mongo',
38+
],
39+
],
40+
], $container);
41+
}
42+
2843
public function testAlias()
2944
{
3045
$extension = new QueueExtension();

0 commit comments

Comments
 (0)