diff options
| author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-24 12:05:04 -0500 |
|---|---|---|
| committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-24 12:05:04 -0500 |
| commit | 44a82dd0837a4693b6a4a410c21c438f244094d3 (patch) | |
| tree | fa2dbb7074decb995238f336c165a6162e85e81d /tests/extension | |
| parent | 98b385bc1c14a3155dd429f8d9118f4d7eb95556 (diff) | |
| download | forums-44a82dd0837a4693b6a4a410c21c438f244094d3.tar forums-44a82dd0837a4693b6a4a410c21c438f244094d3.tar.gz forums-44a82dd0837a4693b6a4a410c21c438f244094d3.tar.bz2 forums-44a82dd0837a4693b6a4a410c21c438f244094d3.tar.xz forums-44a82dd0837a4693b6a4a410c21c438f244094d3.zip | |
[ticket/11628] Remove style path provider
No longer used since Twig was implemented.
PHPBB3-11628
Diffstat (limited to 'tests/extension')
| -rw-r--r-- | tests/extension/style_path_provider_test.php | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/tests/extension/style_path_provider_test.php b/tests/extension/style_path_provider_test.php deleted file mode 100644 index e1021c20ac..0000000000 --- a/tests/extension/style_path_provider_test.php +++ /dev/null @@ -1,50 +0,0 @@ -<?php -/** -* -* @package testing -* @copyright (c) 2013 phpBB Group -* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 -* -*/ -require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php'; - -class phpbb_extension_style_path_provider_test extends phpbb_test_case -{ - protected $relative_root_path; - protected $root_path; - - public function setUp() - { - $this->relative_root_path = './'; - $this->root_path = dirname(__FILE__) . '/'; - } - - public function test_find() - { - $phpbb_style_path_provider = new phpbb_style_path_provider(); - $phpbb_style_path_provider->set_styles(array($this->relative_root_path . 'styles/prosilver')); - $phpbb_style_extension_path_provider = new phpbb_style_extension_path_provider(new phpbb_mock_extension_manager( - $this->root_path, - array( - 'foo' => array( - 'ext_name' => 'foo', - 'ext_active' => '1', - 'ext_path' => 'ext/foo/', - ), - 'bar' => array( - 'ext_name' => 'bar', - 'ext_active' => '1', - 'ext_path' => 'ext/bar/', - ), - )), $phpbb_style_path_provider, $this->relative_root_path); - - $this->assertEquals(array( - 'style' => array( - $this->relative_root_path . 'styles/prosilver', - ), - 'bar' => array( - $this->root_path . 'ext/bar/styles/prosilver', - ), - ), $phpbb_style_extension_path_provider->find()); - } -} |
