aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extension
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-09-29 16:55:32 +0200
committerNils Adermann <naderman@naderman.de>2011-09-29 16:55:50 +0200
commit77f42969ab4e7ba40e3397244158ca7c98480bee (patch)
tree27561741c45bd6e31fb0c0660d698e53f341eb2d /tests/extension
parentcffc676f17d2a2dc3ed45088c5ce3c2e5bd1d64f (diff)
downloadforums-77f42969ab4e7ba40e3397244158ca7c98480bee.tar
forums-77f42969ab4e7ba40e3397244158ca7c98480bee.tar.gz
forums-77f42969ab4e7ba40e3397244158ca7c98480bee.tar.bz2
forums-77f42969ab4e7ba40e3397244158ca7c98480bee.tar.xz
forums-77f42969ab4e7ba40e3397244158ca7c98480bee.zip
[feature/extension-manager] Extend the tests for finding directories
PHPBB3-10323
Diffstat (limited to 'tests/extension')
-rw-r--r--tests/extension/finder_test.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/extension/finder_test.php b/tests/extension/finder_test.php
index 9031e1cb47..2b025433b7 100644
--- a/tests/extension/finder_test.php
+++ b/tests/extension/finder_test.php
@@ -55,7 +55,7 @@ class phpbb_extension_finder_test extends phpbb_test_case
);
}
- public function test_prefix_get_directories()
+ public function test_get_directories()
{
$dirs = $this->finder
->directory('/type')
@@ -67,6 +67,20 @@ class phpbb_extension_finder_test extends phpbb_test_case
), $dirs);
}
+ public function test_prefix_get_directories()
+ {
+ $dirs = $this->finder
+ ->prefix('t')
+ ->get_directories();
+
+ sort($dirs);
+ $this->assertEquals(array(
+ dirname(__FILE__) . '/ext/foo/sub/type/',
+ dirname(__FILE__) . '/ext/foo/type/',
+ dirname(__FILE__) . '/ext/foo/typewrong/',
+ ), $dirs);
+ }
+
public function test_prefix_get_classes()
{
$classes = $this->finder