aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/browse_test.php
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2012-03-16 16:42:29 -0400
committerDavid King <imkingdavid@gmail.com>2012-03-19 09:12:33 -0400
commit66b45318efea886ac6afc1f332cc94ee2af1c494 (patch)
treecaeae16b9df46e69cb90d908efc4684da0f49776 /tests/functional/browse_test.php
parent7b44d6f21a5a8be289bf6810f2c38d580647581e (diff)
downloadforums-66b45318efea886ac6afc1f332cc94ee2af1c494.tar
forums-66b45318efea886ac6afc1f332cc94ee2af1c494.tar.gz
forums-66b45318efea886ac6afc1f332cc94ee2af1c494.tar.bz2
forums-66b45318efea886ac6afc1f332cc94ee2af1c494.tar.xz
forums-66b45318efea886ac6afc1f332cc94ee2af1c494.zip
[ticket/10586] browse tests now work, but mine dont. at least we are making progress
PHPBB3-10586
Diffstat (limited to 'tests/functional/browse_test.php')
-rw-r--r--tests/functional/browse_test.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/functional/browse_test.php b/tests/functional/browse_test.php
index 723cf93232..d119787d13 100644
--- a/tests/functional/browse_test.php
+++ b/tests/functional/browse_test.php
@@ -12,6 +12,17 @@
*/
class phpbb_functional_browse_test extends phpbb_functional_test_case
{
+ public static function setUpBeforeClass()
+ {
+ parent::setUpBeforeClass();
+ $f_path = self::$config['phpbb_functional_path'];
+ // we cannot run these tests correctly if the install directory is present
+ if (is_dir($f_path . 'install/'))
+ {
+ rename($f_path . 'install/', $f_path . 'install_/');
+ }
+ // NOTE: this will need to be renamed back again later if you wish to test again
+ }
public function test_index()
{
$crawler = $this->request('GET', 'index.php');