From fabde989a2676c762f58e17b06772c9a3ba2f85e Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Wed, 13 Jul 2011 08:22:27 -0400 Subject: [feature/extension-manager] Porting cron tasks over to the extension finder PHPBB3-10323 --- tests/extension/finder_test.php | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'tests/extension/finder_test.php') 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() -- cgit v1.2.1