diff options
Diffstat (limited to 'tests/extension')
-rw-r--r-- | tests/extension/finder_test.php | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/tests/extension/finder_test.php b/tests/extension/finder_test.php index a1b216face..b0c98da554 100644 --- a/tests/extension/finder_test.php +++ b/tests/extension/finder_test.php @@ -17,20 +17,22 @@ class phpbb_extension_finder_test extends phpbb_test_case public function setUp() { - $this->extension_manager = new phpbb_mock_extension_manager(array( - 'foo' => array( - 'ext_name' => 'foo', - 'ext_active' => '1', - 'ext_path' => dirname(__FILE__) . '/ext/foo/', - ), - 'bar' => array( - 'ext_name' => 'bar', - 'ext_active' => '1', - 'ext_path' => dirname(__FILE__) . '/ext/bar/', - ), - )); - - $this->finder = new phpbb_extension_finder($this->extension_manager, dirname(__FILE__) . '/'); + $this->extension_manager = new phpbb_mock_extension_manager( + dirname(__FILE__) . '/', + array( + 'foo' => array( + 'ext_name' => 'foo', + 'ext_active' => '1', + 'ext_path' => dirname(__FILE__) . '/ext/foo/', + ), + 'bar' => array( + 'ext_name' => 'bar', + 'ext_active' => '1', + 'ext_path' => dirname(__FILE__) . '/ext/bar/', + ), + )); + + $this->finder = $this->extension_manager->get_finder(); } public function test_suffix_get_classes() |