[ticket/14285] Fix tests

PHPBB3-14285
This commit is contained in:
rubencm 2021-03-21 23:58:48 +01:00
parent f2914b2869
commit 31ca404ff7
2 changed files with 3 additions and 2 deletions

View file

@ -1417,7 +1417,7 @@ class phpbb_functional_feed_test extends phpbb_functional_test_case
$content = $crawler->filterXPath("//entry[{$entry_id}]/content")->text();
foreach ($attachments as $i => $attachment)
{
$url = self::$root_url . "download/attachment/{$attachment['id']}";
$url = self::$root_url . "app.php/download/attachment/{$attachment['id']}";
$string = "Attachment #{$i}";
if ($attachment['displayed'])

View file

@ -47,7 +47,6 @@ class phpbb_functional_test_case extends phpbb_test_case
parent::setUpBeforeClass();
self::$config = phpbb_test_case_helpers::get_test_config();
self::$root_url = self::$config['phpbb_functional_url'];
// Important: this is used both for installation and by
// test cases for querying the tables.
@ -60,6 +59,8 @@ class phpbb_functional_test_case extends phpbb_test_case
self::markTestSkipped('phpbb_functional_url was not set in test_config and wasn\'t set as PHPBB_FUNCTIONAL_URL environment variable either.');
}
self::$root_url = self::$config['phpbb_functional_url'];
if (!self::$already_installed)
{
self::install_board();