aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-08-30 01:15:43 -0400
committerNils Adermann <naderman@naderman.de>2011-09-29 15:42:49 +0200
commit6ea6d50ccb9607429486a01d3144c7d32322e1b5 (patch)
tree4e81742c0f0a158b49cf7b62821d8f58fbc02626 /tests
parent6c6a7d7992460e301615bcc1e13bee92ecc65724 (diff)
downloadforums-6ea6d50ccb9607429486a01d3144c7d32322e1b5.tar
forums-6ea6d50ccb9607429486a01d3144c7d32322e1b5.tar.gz
forums-6ea6d50ccb9607429486a01d3144c7d32322e1b5.tar.bz2
forums-6ea6d50ccb9607429486a01d3144c7d32322e1b5.tar.xz
forums-6ea6d50ccb9607429486a01d3144c7d32322e1b5.zip
[feature/extension-manager] Don't cache the phpbb_root_path in the ext manager
Otherwise the paths are incorrect from e.g. adm/ PHPBB3-10323
Diffstat (limited to 'tests')
-rw-r--r--tests/cron/provider_test.php2
-rw-r--r--tests/extension/finder_test.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/cron/provider_test.php b/tests/cron/provider_test.php
index 3a0545ffc6..662bb34c13 100644
--- a/tests/cron/provider_test.php
+++ b/tests/cron/provider_test.php
@@ -19,7 +19,7 @@ class phpbb_cron_provider_test extends PHPUnit_Framework_TestCase
'testext' => array(
'ext_name' => 'testext',
'ext_active' => true,
- 'ext_path' => dirname(__FILE__) . '/ext/testext/'
+ 'ext_path' => 'ext/testext/'
),
));
$this->provider = new phpbb_cron_provider($this->extension_manager);
diff --git a/tests/extension/finder_test.php b/tests/extension/finder_test.php
index 8d7d38d4d8..9031e1cb47 100644
--- a/tests/extension/finder_test.php
+++ b/tests/extension/finder_test.php
@@ -23,12 +23,12 @@ class phpbb_extension_finder_test extends phpbb_test_case
'foo' => array(
'ext_name' => 'foo',
'ext_active' => '1',
- 'ext_path' => dirname(__FILE__) . '/ext/foo/',
+ 'ext_path' => 'ext/foo/',
),
'bar' => array(
'ext_name' => 'bar',
'ext_active' => '1',
- 'ext_path' => dirname(__FILE__) . '/ext/bar/',
+ 'ext_path' => 'ext/bar/',
),
));