aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extension
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-08-29 18:57:21 -0400
committerNils Adermann <naderman@naderman.de>2011-09-29 15:42:48 +0200
commit739e9eb58e7e9b899955b714aa3fc8bbe6a30ebc (patch)
treeac7c96b5c1e4616b2d5ff9e215465d24790034a6 /tests/extension
parentbd1366d62d018c6b71ea24b1f9915d89d4a240a5 (diff)
downloadforums-739e9eb58e7e9b899955b714aa3fc8bbe6a30ebc.tar
forums-739e9eb58e7e9b899955b714aa3fc8bbe6a30ebc.tar.gz
forums-739e9eb58e7e9b899955b714aa3fc8bbe6a30ebc.tar.bz2
forums-739e9eb58e7e9b899955b714aa3fc8bbe6a30ebc.tar.xz
forums-739e9eb58e7e9b899955b714aa3fc8bbe6a30ebc.zip
[feature/extension-manager] Make the cache variable name for extensions dynamic
Allows multiple instances to use cache simultaneously. PHPBB3-10323
Diffstat (limited to 'tests/extension')
-rw-r--r--tests/extension/finder_test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/extension/finder_test.php b/tests/extension/finder_test.php
index fb2faaf5c0..cae11a5bfa 100644
--- a/tests/extension/finder_test.php
+++ b/tests/extension/finder_test.php
@@ -125,7 +125,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);
+ $finder = new phpbb_extension_finder($this->extension_manager, dirname(__FILE__) . '/includes/', $cache, '.php', '_custom_cache_name');
$files = $finder->suffix('_class.php')->get_files();
sort($files);
@@ -147,7 +147,7 @@ class phpbb_extension_finder_test extends phpbb_test_case
);
$this->assertEquals($expected_files, $files);
- $cache->checkAssociativeVar($this, '_extension_finder', array(
+ $cache->checkAssociativeVar($this, '_custom_cache_name', array(
md5(serialize($query)) => $expected_files,
));
}
@@ -165,7 +165,7 @@ class phpbb_extension_finder_test extends phpbb_test_case
);
$finder = new phpbb_extension_finder($this->extension_manager, dirname(__FILE__) . '/includes/', new phpbb_mock_cache(array(
- '_extension_finder' => array(
+ '_ext_finder' => array(
md5(serialize($query)) => array('file_name'),
),
)));