From 4b527f7bb84a0ec78c1effcd6cc836187342c0cb Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 22 Dec 2025 11:31:08 -0500 Subject: [PATCH 1/3] chore: Add stubs for for direct download on objectstorage Signed-off-by: Josh --- tests/stubs/oc_files_objectstore_objectstorestorage.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/stubs/oc_files_objectstore_objectstorestorage.php b/tests/stubs/oc_files_objectstore_objectstorestorage.php index d5e6b20e5..5dc76614d 100644 --- a/tests/stubs/oc_files_objectstore_objectstorestorage.php +++ b/tests/stubs/oc_files_objectstore_objectstorestorage.php @@ -183,4 +183,13 @@ public function setPreserveCacheOnDelete(bool $preserve) public function free_space(string $path): int|float|false { } + + public function getDirectDownloadById(string $fileId): array|false + { + } + + public function getDirectDownload(string $path): array|false + { + } + } From b96eb0c9a65a7da3686ce1bebe50a96a3faf55ce Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 22 Dec 2025 11:32:29 -0500 Subject: [PATCH 2/3] chore: Add getDirectDownloadById method to storage stub Signed-off-by: Josh --- tests/stubs/oc_files_storage_common.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/stubs/oc_files_storage_common.php b/tests/stubs/oc_files_storage_common.php index dcf00bffa..a03ad0e10 100644 --- a/tests/stubs/oc_files_storage_common.php +++ b/tests/stubs/oc_files_storage_common.php @@ -232,6 +232,10 @@ public function instanceOfStorage(string $class): bool */ public function getDirectDownload(string $path): array|false { + } + + public function getDirectDownloadById(string $fileId): array|false + { } public function verifyPath(string $path, string $fileName): void From caf5265cf7592a2803f33f44e4344286d533e8d5 Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 22 Dec 2025 11:33:31 -0500 Subject: [PATCH 3/3] chore: Add getDirectDownloadById stub method to wrapper Signed-off-by: Josh --- tests/stubs/oc_files_storage_wrapper_wrapper.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/stubs/oc_files_storage_wrapper_wrapper.php b/tests/stubs/oc_files_storage_wrapper_wrapper.php index 225156692..4aea048bc 100644 --- a/tests/stubs/oc_files_storage_wrapper_wrapper.php +++ b/tests/stubs/oc_files_storage_wrapper_wrapper.php @@ -225,6 +225,10 @@ public function __call(string $method, array $args) public function getDirectDownload(string $path): array|false { + } + + public function getDirectDownloadById(string $fileId): array|false + { } public function getAvailability(): array