From 4f4d4044e2132311d81aefae56f0e1bb58933c93 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 9 Aug 2024 22:32:23 +0200 Subject: [PATCH] [ticket/16777] Fix manifest test PHPBB-16777 --- tests/functional/manifest_test.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/functional/manifest_test.php b/tests/functional/manifest_test.php index f100d9bdff..2099dd7661 100644 --- a/tests/functional/manifest_test.php +++ b/tests/functional/manifest_test.php @@ -18,14 +18,16 @@ class phpbb_functional_manifest_test extends phpbb_functional_test_case { public function test_manifest() { + $url_path = preg_replace('#^(/.+)/$#', '$1', parse_url(self::$root_url, PHP_URL_PATH)); + $expected = [ 'name' => 'yourdomain.com', 'short_name' => 'yourdomain', 'display' => 'standalone', 'orientation' => 'portrait', 'dir' => 'ltr', - 'start_url' => '/', - 'scope' => '/', + 'start_url' => $url_path, + 'scope' => $url_path, ]; $this->login();