diff options
Diffstat (limited to 'tests/functional')
-rw-r--r-- | tests/functional/extension_controller_test.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/functional/extension_controller_test.php b/tests/functional/extension_controller_test.php index 5127aa7f47..2476cf0c19 100644 --- a/tests/functional/extension_controller_test.php +++ b/tests/functional/extension_controller_test.php @@ -132,7 +132,9 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c $row_num = str_replace('redirect_expected_', '', $redirect); - $this->assertContains($filesystem->clean_path(self::$root_url) . $crawler->filter('#redirect_expected_' . $row_num)->text(), $crawler->filter('#redirect_' . $row_num)->text()); + $redirect = $crawler->filter('#redirect_' . $row_num)->text(); + $redirect = substr($redirect, 0, strpos($redirect, 'sid') - 1); + $this->assertContains($crawler->filter('#redirect_expected_' . $row_num)->text(), $redirect); } $this->phpbb_extension_manager->purge('foo/bar'); |