Skip to content

Commit bbfa764

Browse files
committed
test: improve ApiPlatformExtensionTest::testCommonConfiguration
1 parent 31e1824 commit bbfa764

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Symfony/Tests/Bundle/DependencyInjection/ApiPlatformExtensionTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ public function testCommonConfiguration(): void
253253
'api_platform.listener.view.write',
254254
'api_platform.listener.view.serialize',
255255
'api_platform.listener.view.respond',
256+
'api_platform.swagger_ui.documentation.provider',
256257
];
257258

258259
foreach ($services as $service) {
@@ -264,11 +265,11 @@ public function testSwaggerUiDisabledConfiguration(): void
264265
{
265266
$config = self::DEFAULT_CONFIG;
266267
$config['api_platform']['enable_swagger'] = true;
267-
$config['api_platform']['enable_swagger_ui'] = false;
268+
$config['api_platform']['enable_swagger_ui'] = false;
268269
$config['api_platform']['use_symfony_listeners'] = true;
269270

270271
(new ApiPlatformExtension())->load($config, $this->container);
271-
272+
272273
$this->assertNotContainerHasService('api_platform.swagger_ui.processor');
273274

274275
$this->assertNotContainerHasService('api_platform.swagger_ui.context');

0 commit comments

Comments
 (0)