From d235262bc21657f0693501ac1154e1443578d507 Mon Sep 17 00:00:00 2001 From: David King Date: Tue, 21 Feb 2012 11:17:21 -0500 Subject: [ticket/10586] Adding the extensions used by the tests PHPBB3-10586 --- .../functional/fixtures/ext/error/class/controller.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/functional/fixtures/ext/error/class/controller.php (limited to 'tests/functional/fixtures/ext/error/class/controller.php') diff --git a/tests/functional/fixtures/ext/error/class/controller.php b/tests/functional/fixtures/ext/error/class/controller.php new file mode 100644 index 0000000000..eb2ae362a6 --- /dev/null +++ b/tests/functional/fixtures/ext/error/class/controller.php @@ -0,0 +1,17 @@ +set_ext_dir_prefix($phpbb_root_path . 'ext/error/class/'); + + $template->set_filenames(array( + 'body' => 'index_body.html' + )); + + page_header('Test extension'); + page_footer(); + } +} -- cgit v1.2.1 From 35805a27408f4d25987c3f8df5c9bf54b15a19f3 Mon Sep 17 00:00:00 2001 From: David King Date: Wed, 28 Mar 2012 16:48:16 -0400 Subject: [ticket/10586] Moved some loading stuff below extension controller, updated tests PHPBB3-10586 --- tests/functional/fixtures/ext/error/class/controller.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/functional/fixtures/ext/error/class/controller.php') 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 @@ 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' )); -- cgit v1.2.1 From caf47f8e19da9e725702fe5a6c09f10be23dd473 Mon Sep 17 00:00:00 2001 From: David King Date: Wed, 28 Mar 2012 20:21:54 -0400 Subject: [ticket/10586] Removed incorrect method call PHPBB3-10586 --- tests/functional/fixtures/ext/error/class/controller.php | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests/functional/fixtures/ext/error/class/controller.php') diff --git a/tests/functional/fixtures/ext/error/class/controller.php b/tests/functional/fixtures/ext/error/class/controller.php index 99849584bc..74bbbee540 100644 --- a/tests/functional/fixtures/ext/error/class/controller.php +++ b/tests/functional/fixtures/ext/error/class/controller.php @@ -4,8 +4,6 @@ class phpbb_ext_foobar_controller extends phpbb_extension_controller { public function handle() { - $this->template->set_ext_dir_prefix($this->phpbb_root_path . 'ext/error/class/'); - $this->template->set_filenames(array( 'body' => 'index_body.html' )); -- cgit v1.2.1