Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaOnLine committed Sep 3, 2024
1 parent 84ca74a commit 3a06766
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions tests/GeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
]]);

Expand Down

0 comments on commit 3a06766

Please sign in to comment.