From 42d9e087fb175a07588de41ebcd3a45b119e0199 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 4 Jan 2023 11:16:56 +0100 Subject: Remove unused legacy ajax/list.php in files app Signed-off-by: Vincent Petry Signed-off-by: nextcloud-command --- tests/lib/Route/RouterTest.php | 3 --- tests/lib/UrlGeneratorTest.php | 8 ++++---- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'tests/lib') diff --git a/tests/lib/Route/RouterTest.php b/tests/lib/Route/RouterTest.php index 1f03f4edecb..cc7eda199e2 100644 --- a/tests/lib/Route/RouterTest.php +++ b/tests/lib/Route/RouterTest.php @@ -43,9 +43,6 @@ class RouterTest extends TestCase { // the OCS route is the prefixed one for the AppFramework - see /ocs/v1.php for routing details $this->assertEquals('/index.php/ocsapp/apps/dav/api/v1/direct', $router->generate('ocs.dav.direct.getUrl')); - // special route name - should load all apps and then find the route - $this->assertEquals('/index.php/apps/files/ajax/list.php', $router->generate('files_ajax_list')); - // test caching $this->assertEquals('/index.php/apps/files/', $router->generate('files.view.index')); } diff --git a/tests/lib/UrlGeneratorTest.php b/tests/lib/UrlGeneratorTest.php index 7fdbb7fb37e..4c1cd29273f 100644 --- a/tests/lib/UrlGeneratorTest.php +++ b/tests/lib/UrlGeneratorTest.php @@ -119,16 +119,16 @@ class UrlGeneratorTest extends \Test\TestCase { public function provideDocRootAppUrlParts() { return [ - ['files', 'ajax/list.php', [], '/index.php/apps/files/ajax/list.php'], - ['files', 'ajax/list.php', ['trut' => 'trat', 'dut' => 'dat'], '/index.php/apps/files/ajax/list.php?trut=trat&dut=dat'], + ['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'], ['', 'index.php', ['trut' => 'trat', 'dut' => 'dat'], '/index.php?trut=trat&dut=dat'], ]; } public function provideSubDirAppUrlParts() { return [ - ['files', 'ajax/list.php', [], '/nextcloud/index.php/apps/files/ajax/list.php'], - ['files', 'ajax/list.php', ['trut' => 'trat', 'dut' => 'dat'], '/nextcloud/index.php/apps/files/ajax/list.php?trut=trat&dut=dat'], + ['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'], ['', 'index.php', ['trut' => 'trat', 'dut' => 'dat'], '/nextcloud/index.php?trut=trat&dut=dat'], ]; } -- cgit v1.2.3