mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 07:47:34 +02:00
[feature/extension-manager] Extend the tests for finding directories
PHPBB3-10323
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user