mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/14285] Fix tests
PHPBB3-14285
This commit is contained in:
parent
f2914b2869
commit
31ca404ff7
2 changed files with 3 additions and 2 deletions
|
@ -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'])
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue