aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2012-03-28 16:48:16 -0400
committerDavid King <imkingdavid@gmail.com>2012-03-28 16:48:16 -0400
commit35805a27408f4d25987c3f8df5c9bf54b15a19f3 (patch)
treed9baad4b0c38c40a2b1b3838188d57c9c3206125 /tests
parentc44d77b03148122dceb33c0bf30858013bbffd38 (diff)
downloadforums-35805a27408f4d25987c3f8df5c9bf54b15a19f3.tar
forums-35805a27408f4d25987c3f8df5c9bf54b15a19f3.tar.gz
forums-35805a27408f4d25987c3f8df5c9bf54b15a19f3.tar.bz2
forums-35805a27408f4d25987c3f8df5c9bf54b15a19f3.tar.xz
forums-35805a27408f4d25987c3f8df5c9bf54b15a19f3.zip
[ticket/10586] Moved some loading stuff below extension controller, updated tests
PHPBB3-10586
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/fixtures/ext/error/class/controller.php7
-rw-r--r--tests/functional/fixtures/ext/error/disabled/controller.php7
-rw-r--r--tests/functional/fixtures/ext/foo/bar/controller.php7
-rw-r--r--tests/functional/fixtures/ext/foobar/controller.php7
4 files changed, 12 insertions, 16 deletions
diff --git a/tests/functional/fixtures/ext/error/class/controller.php b/tests/functional/fixtures/ext/error/class/controller.php
index eb2ae362a6..99849584bc 100644
--- a/tests/functional/fixtures/ext/error/class/controller.php
+++ b/tests/functional/fixtures/ext/error/class/controller.php
@@ -1,13 +1,12 @@
<?php
-class phpbb_ext_foobar_controller implements phpbb_extension_controller_interface
+class phpbb_ext_foobar_controller extends phpbb_extension_controller
{
public function handle()
{
- global $template;
- $template->set_ext_dir_prefix($phpbb_root_path . 'ext/error/class/');
+ $this->template->set_ext_dir_prefix($this->phpbb_root_path . 'ext/error/class/');
- $template->set_filenames(array(
+ $this->template->set_filenames(array(
'body' => 'index_body.html'
));
diff --git a/tests/functional/fixtures/ext/error/disabled/controller.php b/tests/functional/fixtures/ext/error/disabled/controller.php
index b83a949020..ef2edda3de 100644
--- a/tests/functional/fixtures/ext/error/disabled/controller.php
+++ b/tests/functional/fixtures/ext/error/disabled/controller.php
@@ -1,13 +1,12 @@
<?php
-class phpbb_ext_error_disabled_controller implements phpbb_extension_controller_interface
+class phpbb_ext_error_disabled_controller extends phpbb_extension_controller
{
public function handle()
{
- global $template;
- $template->set_ext_dir_prefix($phpbb_root_path . 'ext/error/disabled/');
+ $this->template->set_ext_dir_prefix($this->phpbb_root_path . 'ext/error/disabled/');
- $template->set_filenames(array(
+ $this->template->set_filenames(array(
'body' => 'index_body.html'
));
diff --git a/tests/functional/fixtures/ext/foo/bar/controller.php b/tests/functional/fixtures/ext/foo/bar/controller.php
index 24d218c412..1910a4da88 100644
--- a/tests/functional/fixtures/ext/foo/bar/controller.php
+++ b/tests/functional/fixtures/ext/foo/bar/controller.php
@@ -1,13 +1,12 @@
<?php
-class phpbb_ext_foo_bar_controller implements phpbb_extension_controller_interface
+class phpbb_ext_foo_bar_controller extends phpbb_extension_controller
{
public function handle()
{
- global $template;
- $template->set_ext_dir_prefix($phpbb_root_path . 'ext/foo/bar/');
+ $this->template->set_ext_dir_prefix($this->phpbb_root_path . 'ext/foo/bar/');
- $template->set_filenames(array(
+ $this->template->set_filenames(array(
'body' => 'foobar_body.html'
));
diff --git a/tests/functional/fixtures/ext/foobar/controller.php b/tests/functional/fixtures/ext/foobar/controller.php
index bf8d8139ae..5161b28fe8 100644
--- a/tests/functional/fixtures/ext/foobar/controller.php
+++ b/tests/functional/fixtures/ext/foobar/controller.php
@@ -1,13 +1,12 @@
<?php
-class phpbb_ext_foobar_controller implements phpbb_extension_controller_interface
+class phpbb_ext_foobar_controller extends phpbb_extension_controller
{
public function handle()
{
- global $template;
- $template->set_ext_dir_prefix($phpbb_root_path . 'ext/foobar/');
+ $this->template->set_ext_dir_prefix($this->phpbb_root_path . 'ext/foobar/');
- $template->set_filenames(array(
+ $this->template->set_filenames(array(
'body' => 'foobar_body.html'
));