Skip to content

Commit

Permalink
Added test case for usage of --allow-list
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjaap committed Dec 3, 2024
1 parent 9026e69 commit bed10e9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/Unit/Task/SecurityCheckerEnlightnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,16 @@ public function provideExternalTaskRuns(): iterable
'./composer.lock',
]
];

yield 'with_allow_list' => [
['allow_list' => ['allow_advisory_1', 'allow_advisory_2']],
$this->mockContext(RunContext::class, ['composer.lock']),
'security-checker',
[
'security:check',
'./composer.lock',
'--allow-list=allow_advisory_1,allow_advisory_2'
]
];
}
}

0 comments on commit bed10e9

Please sign in to comment.