diff options
author | Nils Adermann <naderman@naderman.de> | 2011-08-31 17:49:48 -0400 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2011-09-29 16:15:53 +0200 |
commit | 520a5f92953d350880355dbe46217d2b41edd2bd (patch) | |
tree | d0658eaf062ea332dd9be2a94ef5cb010fb35fd7 /tests | |
parent | 52f5fa796f473e11a101b4da91e455bdc4839daf (diff) | |
download | forums-520a5f92953d350880355dbe46217d2b41edd2bd.tar forums-520a5f92953d350880355dbe46217d2b41edd2bd.tar.gz forums-520a5f92953d350880355dbe46217d2b41edd2bd.tar.bz2 forums-520a5f92953d350880355dbe46217d2b41edd2bd.tar.xz forums-520a5f92953d350880355dbe46217d2b41edd2bd.zip |
[feature/extension-manager] Refactoring the structure of extension provider
PHPBB3-10323
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cron/task_provider_test.php (renamed from tests/cron/provider_test.php) | 4 | ||||
-rw-r--r-- | tests/template/template_inheritance_test.php | 2 | ||||
-rw-r--r-- | tests/template/template_test_case.php | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/cron/provider_test.php b/tests/cron/task_provider_test.php index 662bb34c13..5565d0f64c 100644 --- a/tests/cron/provider_test.php +++ b/tests/cron/task_provider_test.php @@ -9,7 +9,7 @@ require_once dirname(__FILE__) . '/../mock/extension_manager.php'; -class phpbb_cron_provider_test extends PHPUnit_Framework_TestCase +class phpbb_cron_task_provider_test extends PHPUnit_Framework_TestCase { public function setUp() { @@ -22,7 +22,7 @@ class phpbb_cron_provider_test extends PHPUnit_Framework_TestCase 'ext_path' => 'ext/testext/' ), )); - $this->provider = new phpbb_cron_provider($this->extension_manager); + $this->provider = new phpbb_cron_task_provider($this->extension_manager); } public function test_manager_finds_shipped_tasks() diff --git a/tests/template/template_inheritance_test.php b/tests/template/template_inheritance_test.php index 3b75498828..93b01ae381 100644 --- a/tests/template/template_inheritance_test.php +++ b/tests/template/template_inheritance_test.php @@ -69,7 +69,7 @@ class phpbb_template_template_inheritance_test extends phpbb_template_template_t $this->template_path = dirname(__FILE__) . '/templates'; $this->parent_template_path = dirname(__FILE__) . '/parent_templates'; $this->template_locator = new phpbb_template_locator(); - $this->template_provider = new phpbb_template_path_provider(new phpbb_mock_extension_manager(dirname(__FILE__) . '/')); + $this->template_provider = new phpbb_template_path_provider(); $this->template = new phpbb_template($phpbb_root_path, $phpEx, $config, $user, $this->template_locator, $this->template_provider); $this->template->set_custom_template($this->template_path, 'tests', $this->parent_template_path); } diff --git a/tests/template/template_test_case.php b/tests/template/template_test_case.php index c0944f7f5a..4e36912e01 100644 --- a/tests/template/template_test_case.php +++ b/tests/template/template_test_case.php @@ -59,7 +59,7 @@ class phpbb_template_template_test_case extends phpbb_test_case $this->template_path = dirname(__FILE__) . '/templates'; $this->template_locator = new phpbb_template_locator(); - $this->template_provider = new phpbb_template_path_provider(new phpbb_mock_extension_manager(dirname(__FILE__) . '/')); + $this->template_provider = new phpbb_template_path_provider(); $this->template = new phpbb_template($phpbb_root_path, $phpEx, $config, $user, $this->template_locator, $this->template_provider); $this->template->set_custom_template($this->template_path, 'tests'); } |