File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
tests/Bridge/Symfony/Bundle/DependencyInjection Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -234,4 +234,40 @@ public function testApiKeysConfig()
234
234
$ this ->assertTrue (isset ($ config ['swagger ' ]['api_keys ' ]));
235
235
$ this ->assertSame ($ exampleConfig , $ config ['swagger ' ]['api_keys ' ][0 ]);
236
236
}
237
+
238
+ /**
239
+ * Test config for empty title and description.
240
+ */
241
+ public function testEmptyTitleDescriptionConfig ()
242
+ {
243
+ $ testConfig = [
244
+ 'title ' => '' ,
245
+ 'description ' => '' ,
246
+ ];
247
+
248
+ $ config = $ this ->processor ->processConfiguration ($ this ->configuration , [
249
+ 'api_platform ' => $ testConfig ,
250
+ ]);
251
+
252
+ $ this ->assertSame ($ config ['title ' ], '' );
253
+ $ this ->assertSame ($ config ['description ' ], '' );
254
+ }
255
+
256
+ /**
257
+ * Test config for null title and description.
258
+ */
259
+ public function testNullTitleDescriptionConfig ()
260
+ {
261
+ $ testConfig = [
262
+ 'title ' => null ,
263
+ 'description ' => null ,
264
+ ];
265
+
266
+ $ config = $ this ->processor ->processConfiguration ($ this ->configuration , [
267
+ 'api_platform ' => $ testConfig ,
268
+ ]);
269
+
270
+ $ this ->assertSame ($ config ['title ' ], '' );
271
+ $ this ->assertSame ($ config ['description ' ], '' );
272
+ }
237
273
}
You can’t perform that action at this time.
0 commit comments