From 3a06766cdfecfd210470b57705858555f25de7ff Mon Sep 17 00:00:00 2001 From: Darius Matulionis Date: Tue, 3 Sep 2024 09:23:56 +0300 Subject: [PATCH] update tests --- tests/GeneratorTest.php | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/tests/GeneratorTest.php b/tests/GeneratorTest.php index 4d8982a..b7066d5 100644 --- a/tests/GeneratorTest.php +++ b/tests/GeneratorTest.php @@ -189,25 +189,16 @@ public function testCanGenerateWithScanOptions(): void { $cfg = config('l5-swagger.documentations.default'); - $cfg['scanOptions']['exclude'] = [ - __DIR__.'/storage/annotations/OpenApi/Clients', - ]; - + $cfg['scanOptions']['exclude'] = [__DIR__.'/storage/annotations/OpenApi/Clients']; $cfg['scanOptions']['pattern'] = 'L5SwaggerAnnotationsExample*.*'; $cfg['scanOptions']['analyser'] = new TokenAnalyser; $cfg['scanOptions']['open_api_spec_version'] = '3.1.0'; - $cfg['scanOptions']['processors'] = [ - new CleanUnmerged, - ]; - $cfg['scanOptions']['default_processors_configuration'] = [ - 'operationId' => ['hash' => false], - ]; + $cfg['scanOptions']['processors'] = [new CleanUnmerged]; + $cfg['scanOptions']['default_processors_configuration'] = ['operationId' => ['hash' => false]]; config(['l5-swagger' => [ 'default' => 'default', - 'documentations' => [ - 'default' => $cfg, - ], + 'documentations' => ['default' => $cfg], 'defaults' => config('l5-swagger.defaults'), ]]);