Skip to content

Commit

Permalink
tests: Remove non-applicable tests
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Sep 30, 2024
1 parent 4b3a3a8 commit a1970fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Unit/StorageWrapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ public static function dataSinglePath(): array {

$tests = [];
foreach ($methods as $method) {
$tests[] = [$method, 'path1', true, null];
if ($method !== 'file_get_contents' && $method !== 'getDirectDownload') {
$tests[] = [$method, 'path1', true, null];
}
$tests[] = [$method, 'path2', false, null];
$tests[] = [$method, 'path3', true, new ForbiddenException('Access denied', false)];
$tests[] = [$method, 'path4', false, new ForbiddenException('Access denied', false)];
Expand Down

0 comments on commit a1970fa

Please sign in to comment.