mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/extension-manager] Extend the tests for finding directories
PHPBB3-10323
This commit is contained in:
parent
cffc676f17
commit
77f42969ab
1 changed files with 15 additions and 1 deletions
|
@ -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
|
$dirs = $this->finder
|
||||||
->directory('/type')
|
->directory('/type')
|
||||||
|
@ -67,6 +67,20 @@ class phpbb_extension_finder_test extends phpbb_test_case
|
||||||
), $dirs);
|
), $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()
|
public function test_prefix_get_classes()
|
||||||
{
|
{
|
||||||
$classes = $this->finder
|
$classes = $this->finder
|
||||||
|
|
Loading…
Add table
Reference in a new issue