aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extension/finder_test.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-10-13 21:19:35 +0200
committerNils Adermann <naderman@naderman.de>2011-10-13 21:19:35 +0200
commit724f40f0f4fdfc47764a069cc91f045f0c67f4fb (patch)
tree14ae2ccfbe338b8e1088052d5b7f64eb27b031e3 /tests/extension/finder_test.php
parent7b12bba95bb7c59bde65e8ea1ffb1275944fd965 (diff)
downloadforums-724f40f0f4fdfc47764a069cc91f045f0c67f4fb.tar
forums-724f40f0f4fdfc47764a069cc91f045f0c67f4fb.tar.gz
forums-724f40f0f4fdfc47764a069cc91f045f0c67f4fb.tar.bz2
forums-724f40f0f4fdfc47764a069cc91f045f0c67f4fb.tar.xz
forums-724f40f0f4fdfc47764a069cc91f045f0c67f4fb.zip
[feature/extension-manager] extension finder now saves ext it found a file in
PHPBB3-10323
Diffstat (limited to 'tests/extension/finder_test.php')
-rw-r--r--tests/extension/finder_test.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/extension/finder_test.php b/tests/extension/finder_test.php
index 2b025433b7..26dd50ed12 100644
--- a/tests/extension/finder_test.php
+++ b/tests/extension/finder_test.php
@@ -154,12 +154,10 @@ class phpbb_extension_finder_test extends phpbb_test_case
$finder = new phpbb_extension_finder($this->extension_manager, dirname(__FILE__) . '/', $cache, '.php', '_custom_cache_name');
$files = $finder->suffix('_class.php')->get_files();
- sort($files);
-
$expected_files = array(
- 'ext/bar/my/hidden_class.php',
- 'ext/foo/a_class.php',
- 'ext/foo/b_class.php',
+ 'ext/bar/my/hidden_class.php' => 'bar',
+ 'ext/foo/a_class.php' => 'foo',
+ 'ext/foo/b_class.php' => 'foo',
);
$query = array(
@@ -175,7 +173,7 @@ class phpbb_extension_finder_test extends phpbb_test_case
$cache->checkAssociativeVar($this, '_custom_cache_name', array(
md5(serialize($query)) => $expected_files,
- ));
+ ), false);
}
public function test_cached_get_files()
@@ -193,7 +191,7 @@ class phpbb_extension_finder_test extends phpbb_test_case
$finder = new phpbb_extension_finder($this->extension_manager, dirname(__FILE__) . '/', new phpbb_mock_cache(array(
'_ext_finder' => array(
- md5(serialize($query)) => array('file_name'),
+ md5(serialize($query)) => array('file_name' => 'extension'),
),
)));