aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extension
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-08-29 22:51:15 -0400
committerNils Adermann <naderman@naderman.de>2011-09-29 15:42:49 +0200
commit7d16007d6a1c042389039ab9ab59c073ecd7c933 (patch)
treeb33609b4fd0bcd25f649fe5bb9290c96b395468c /tests/extension
parentfd4259919188df2d7e4667108bf86d9bd22a8e2b (diff)
downloadforums-7d16007d6a1c042389039ab9ab59c073ecd7c933.tar
forums-7d16007d6a1c042389039ab9ab59c073ecd7c933.tar.gz
forums-7d16007d6a1c042389039ab9ab59c073ecd7c933.tar.bz2
forums-7d16007d6a1c042389039ab9ab59c073ecd7c933.tar.xz
forums-7d16007d6a1c042389039ab9ab59c073ecd7c933.zip
[feature/extension-manager] Prepend the phpbb_root_path if necessary.
PHPBB3-10323
Diffstat (limited to 'tests/extension')
-rw-r--r--tests/extension/finder_test.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/extension/finder_test.php b/tests/extension/finder_test.php
index b8ce8909ee..8d7d38d4d8 100644
--- a/tests/extension/finder_test.php
+++ b/tests/extension/finder_test.php
@@ -63,7 +63,7 @@ class phpbb_extension_finder_test extends phpbb_test_case
sort($dirs);
$this->assertEquals(array(
- 'ext/foo/type/',
+ dirname(__FILE__) . '/ext/foo/type/',
), $dirs);
}
@@ -137,7 +137,7 @@ class phpbb_extension_finder_test extends phpbb_test_case
public function test_get_classes_create_cache()
{
$cache = new phpbb_mock_cache;
- $finder = new phpbb_extension_finder($this->extension_manager, dirname(__FILE__) . '/includes/', $cache, '.php', '_custom_cache_name');
+ $finder = new phpbb_extension_finder($this->extension_manager, dirname(__FILE__) . '/', $cache, '.php', '_custom_cache_name');
$files = $finder->suffix('_class.php')->get_files();
sort($files);
@@ -159,7 +159,6 @@ class phpbb_extension_finder_test extends phpbb_test_case
'is_dir' => false,
);
- $this->assertEquals($expected_files, $files);
$cache->checkAssociativeVar($this, '_custom_cache_name', array(
md5(serialize($query)) => $expected_files,
));
@@ -178,7 +177,7 @@ class phpbb_extension_finder_test extends phpbb_test_case
'is_dir' => false,
);
- $finder = new phpbb_extension_finder($this->extension_manager, dirname(__FILE__) . '/includes/', new phpbb_mock_cache(array(
+ $finder = new phpbb_extension_finder($this->extension_manager, dirname(__FILE__) . '/', new phpbb_mock_cache(array(
'_ext_finder' => array(
md5(serialize($query)) => array('file_name'),
),
@@ -191,7 +190,7 @@ class phpbb_extension_finder_test extends phpbb_test_case
sort($classes);
$this->assertEquals(
- array('file_name'),
+ array(dirname(__FILE__) . '/file_name'),
$classes
);
}