From f4edb17ffb5955587a30e087d7ee0e5ee119ddec Mon Sep 17 00:00:00 2001 From: Danil Date: Tue, 25 Sep 2018 16:42:56 +0500 Subject: [PATCH] Fix extension test --- .../NelmioApiDocExtensionTest.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Tests/DependencyInjection/NelmioApiDocExtensionTest.php b/Tests/DependencyInjection/NelmioApiDocExtensionTest.php index fd864e2..1fc84a6 100644 --- a/Tests/DependencyInjection/NelmioApiDocExtensionTest.php +++ b/Tests/DependencyInjection/NelmioApiDocExtensionTest.php @@ -87,11 +87,20 @@ class NelmioApiDocExtensionTest extends TestCase public function testMergesRootKeysFromMultipleConfigurations() { + /** + * areas: + default: + path_patterns: '%client_api_regexp_filter%' + host_patterns: ['%domain.client%'] + */ $container = new ContainerBuilder(); $container->setParameter('kernel.bundles', []); $extension = new NelmioApiDocExtension(); $extension->load([ [ + 'areas' => [ + 'default' => [] + ], 'documentation' => [ 'info' => [ 'title' => 'API documentation', @@ -125,6 +134,7 @@ class NelmioApiDocExtensionTest extends TestCase ], ], ], $container); + $this->assertSame([ 'info' => [ 'title' => 'API documentation', @@ -147,6 +157,6 @@ class NelmioApiDocExtensionTest extends TestCase ], ], ], - ], $container->getDefinition('nelmio_api_doc.describers.config')->getArgument(0)); + ], $container->getDefinition('nelmio_api_doc.describers.config.default')->getArgument(0)); } }