Skip to content

Commit 266c01b

Browse files
author
abluchet
committed
Fix null title/description configuration (#1563 followup)
1 parent 0748b88 commit 266c01b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/Bridge/Symfony/Bundle/DependencyInjection/ConfigurationTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,17 @@ public function testApiKeysConfig()
234234
$this->assertTrue(isset($config['swagger']['api_keys']));
235235
$this->assertSame($exampleConfig, $config['swagger']['api_keys'][0]);
236236
}
237+
238+
/**
239+
* Test config for empty title and description.
240+
*/
241+
public function testEmptyTitleDescriptionConfig()
242+
{
243+
$config = $this->processor->processConfiguration($this->configuration, [
244+
'api_platform' => [],
245+
]);
246+
247+
$this->assertSame($config['title'], '');
248+
$this->assertSame($config['description'], '');
249+
}
237250
}

0 commit comments

Comments
 (0)