Skip to content

Commit 58974e7

Browse files
committed
fixup! fix(SecureView): hide disfunctional *download* files action
1 parent 3ed2aee commit 58974e7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/features/bootstrap/RichDocumentsContext.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ public function downloadButtonIsNotVisible(string $path, string $user): void {
9393
private function downloadButtonIsNotVisibleOrNot(string $path, string $user, bool $isVisible): void {
9494
$hideDownloadProperty = '{http://nextcloud.org/ns}hide-download';
9595
$this->serverContext->usingWebAsUser($user);
96-
$result = $this->filesContext->listFolder($path, 0, [$hideDownloadProperty]);
97-
var_dump($result);
98-
$fileInfo = empty($result) ? [] : $result[array_key_first($result)];
96+
$fileInfo = $this->filesContext->listFolder($path, 0, [$hideDownloadProperty]);
9997

10098
if ($isVisible) {
10199
Assert::assertTrue(!isset($fileInfo[$hideDownloadProperty]) || $fileInfo[$hideDownloadProperty] === 'false');

0 commit comments

Comments
 (0)