From f9abfe04736540c5c88933cc037ed08509430c38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Tue, 7 Oct 2025 14:34:25 +0200 Subject: [PATCH] fix(tests): Use testing application for testing ajax endpoints, not user_ldap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet Signed-off-by: Louis Chmn --- apps/testing/ajax/endpoint.php | 10 ++++++++++ tests/lib/UrlGeneratorTest.php | 8 ++++---- 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 apps/testing/ajax/endpoint.php diff --git a/apps/testing/ajax/endpoint.php b/apps/testing/ajax/endpoint.php new file mode 100644 index 00000000000..5dfe6839819 --- /dev/null +++ b/apps/testing/ajax/endpoint.php @@ -0,0 +1,10 @@ + 'trat', 'dut' => 'dat'], '/index.php/apps/user_ldap/ajax/wizard.php?trut=trat&dut=dat'], + ['testing', 'ajax/endpoint.php', [], '/index.php/apps/testing/ajax/endpoint.php'], + ['testing', 'ajax/endpoint.php', ['trut' => 'trat', 'dut' => 'dat'], '/index.php/apps/testing/ajax/endpoint.php?trut=trat&dut=dat'], ['', 'index.php', ['trut' => 'trat', 'dut' => 'dat'], '/index.php?trut=trat&dut=dat'], ]; } public static function provideSubDirAppUrlParts(): array { return [ - ['user_ldap', 'ajax/wizard.php', [], '/nextcloud/index.php/apps/user_ldap/ajax/wizard.php'], - ['user_ldap', 'ajax/wizard.php', ['trut' => 'trat', 'dut' => 'dat'], '/nextcloud/index.php/apps/user_ldap/ajax/wizard.php?trut=trat&dut=dat'], + ['testing', 'ajax/endpoint.php', [], '/nextcloud/index.php/apps/testing/ajax/endpoint.php'], + ['testing', 'ajax/endpoint.php', ['trut' => 'trat', 'dut' => 'dat'], '/nextcloud/index.php/apps/testing/ajax/endpoint.php?trut=trat&dut=dat'], ['', 'index.php', ['trut' => 'trat', 'dut' => 'dat'], '/nextcloud/index.php?trut=trat&dut=dat'], ]; }