From 6adb1bf12ace7bf25deffb4c0e546e41d6091f99 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 14 Jan 2022 21:28:51 +0100 Subject: [PATCH] [ticket/16950] Make download_test URLs work without URL rewrite PHPBB3-16950 --- tests/functional/download_test.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/functional/download_test.php b/tests/functional/download_test.php index d14c0cdb8c..e57b194571 100644 --- a/tests/functional/download_test.php +++ b/tests/functional/download_test.php @@ -83,7 +83,7 @@ class phpbb_functional_download_test extends phpbb_functional_test_case )); // Download attachment as guest - $crawler = self::request('GET', "download/attachment/{$this->data['attachments'][$this->data['posts']['Re: Download Topic #1-#2']]}", array(), false); + $crawler = self::request('GET', "app.php/download/attachment/{$this->data['attachments'][$this->data['posts']['Re: Download Topic #1-#2']]}", array(), false); self::assert_response_status_code(200); $content = self::$client->getResponse()->getContent(); $finfo = new finfo(FILEINFO_MIME_TYPE); @@ -141,7 +141,7 @@ class phpbb_functional_download_test extends phpbb_functional_test_case $this->add_lang('viewtopic'); // No download attachment as guest - $crawler = self::request('GET', "download/attachment/{$this->data['attachments'][$this->data['posts']['Re: Download Topic #1-#2']]}", array(), false); + $crawler = self::request('GET', "app.php/download/attachment/{$this->data['attachments'][$this->data['posts']['Re: Download Topic #1-#2']]}", array(), false); self::assert_response_html(404); $this->assertContainsLang('ERROR_NO_ATTACHMENT', $crawler->filter('#message')->text()); @@ -149,7 +149,7 @@ class phpbb_functional_download_test extends phpbb_functional_test_case $this->login(); // Download attachment as admin - $crawler = self::request('GET', "download/attachment/{$this->data['attachments'][$this->data['posts']['Re: Download Topic #1-#2']]}", array(), false); + $crawler = self::request('GET', "app.php/download/attachment/{$this->data['attachments'][$this->data['posts']['Re: Download Topic #1-#2']]}", array(), false); self::assert_response_status_code(200); $content = self::$client->getResponse()->getContent(); $finfo = new finfo(FILEINFO_MIME_TYPE); @@ -208,7 +208,7 @@ class phpbb_functional_download_test extends phpbb_functional_test_case $this->add_lang('viewtopic'); // No download attachment as guest - $crawler = self::request('GET', "download/attachment/{$this->data['attachments'][$this->data['posts']['Re: Download Topic #1-#2']]}", array(), false); + $crawler = self::request('GET', "app.php/download/attachment/{$this->data['attachments'][$this->data['posts']['Re: Download Topic #1-#2']]}", array(), false); self::assert_response_html(404); $this->assertContainsLang('ERROR_NO_ATTACHMENT', $crawler->filter('#message')->text()); @@ -216,7 +216,7 @@ class phpbb_functional_download_test extends phpbb_functional_test_case $this->login(); // Download attachment as admin - $crawler = self::request('GET', "download/attachment/{$this->data['attachments'][$this->data['posts']['Re: Download Topic #1-#2']]}", array(), false); + $crawler = self::request('GET', "app.php/download/attachment/{$this->data['attachments'][$this->data['posts']['Re: Download Topic #1-#2']]}", array(), false); self::assert_response_status_code(200); $content = self::$client->getResponse()->getContent(); $finfo = new finfo(FILEINFO_MIME_TYPE);