summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2023-01-04 11:16:56 +0100
committerVincent Petry <vincent@nextcloud.com>2023-01-09 15:18:37 +0100
commit42d9e087fb175a07588de41ebcd3a45b119e0199 (patch)
tree6583d5f59ab804c403220286dfb51cb19a121cd3 /tests/lib
parent79f1c30a31f9453b119f9e9880a6308a86c78b39 (diff)
downloadnextcloud-server-42d9e087fb175a07588de41ebcd3a45b119e0199.tar.gz
nextcloud-server-42d9e087fb175a07588de41ebcd3a45b119e0199.zip
Remove unused legacy ajax/list.php in files app
Signed-off-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/Route/RouterTest.php3
-rw-r--r--tests/lib/UrlGeneratorTest.php8
2 files changed, 4 insertions, 7 deletions
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'],
];
}