diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-09-16 16:35:01 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-09-28 13:18:29 +0200 |
commit | 0f6760c810e370023728d93a31f69c79dc5c3e3d (patch) | |
tree | ec8ac8201ef131b1f1727b33060c731b915414b0 /tests/lib | |
parent | 2f66bd5b754f072a3cfeda759d71a479e4538350 (diff) | |
download | nextcloud-server-0f6760c810e370023728d93a31f69c79dc5c3e3d.tar.gz nextcloud-server-0f6760c810e370023728d93a31f69c79dc5c3e3d.zip |
feat(files): Make the files download action use WebDAV zip download
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/UrlGeneratorTest.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/UrlGeneratorTest.php b/tests/lib/UrlGeneratorTest.php index 0f5e2984ce9..ed7b797d809 100644 --- a/tests/lib/UrlGeneratorTest.php +++ b/tests/lib/UrlGeneratorTest.php @@ -107,25 +107,25 @@ class UrlGeneratorTest extends \Test\TestCase { $this->assertEquals($expected, $result); } - public function provideRoutes() { + public static function provideRoutes() { return [ ['core.Preview.getPreview', 'http://localhost/nextcloud/index.php/core/preview.png'], ['cloud_federation_api.requesthandlercontroller.addShare', 'http://localhost/nextcloud/index.php/ocm/shares'], ]; } - public function provideDocRootAppUrlParts() { + public static function provideDocRootAppUrlParts() { return [ - ['files', 'ajax/download.php', [], '/index.php/apps/files/ajax/download.php'], - ['files', 'ajax/download.php', ['trut' => 'trat', 'dut' => 'dat'], '/index.php/apps/files/ajax/download.php?trut=trat&dut=dat'], + ['files_external', 'ajax/oauth2.php', [], '/index.php/apps/files_external/ajax/oauth2.php'], + ['files_external', 'ajax/oauth2.php', ['trut' => 'trat', 'dut' => 'dat'], '/index.php/apps/files_external/ajax/oauth2.php?trut=trat&dut=dat'], ['', 'index.php', ['trut' => 'trat', 'dut' => 'dat'], '/index.php?trut=trat&dut=dat'], ]; } - public function provideSubDirAppUrlParts() { + public static function provideSubDirAppUrlParts() { return [ - ['files', 'ajax/download.php', [], '/nextcloud/index.php/apps/files/ajax/download.php'], - ['files', 'ajax/download.php', ['trut' => 'trat', 'dut' => 'dat'], '/nextcloud/index.php/apps/files/ajax/download.php?trut=trat&dut=dat'], + ['files_external', 'ajax/oauth2.php', [], '/nextcloud/index.php/apps/files_external/ajax/oauth2.php'], + ['files_external', 'ajax/oauth2.php', ['trut' => 'trat', 'dut' => 'dat'], '/nextcloud/index.php/apps/files_external/ajax/oauth2.php?trut=trat&dut=dat'], ['', 'index.php', ['trut' => 'trat', 'dut' => 'dat'], '/nextcloud/index.php?trut=trat&dut=dat'], ]; } |