diff options
| author | David King <imkingdavid@gmail.com> | 2012-02-21 11:17:21 -0500 |
|---|---|---|
| committer | David King <imkingdavid@gmail.com> | 2012-03-19 09:12:33 -0400 |
| commit | d235262bc21657f0693501ac1154e1443578d507 (patch) | |
| tree | b2ec9edc55b93f236fb62f5560b99d0a62cd3b0d /tests/functional/fixtures/ext/error | |
| parent | a37a28b48546afc880446db7e4b2fd87c70a6cda (diff) | |
| download | forums-d235262bc21657f0693501ac1154e1443578d507.tar forums-d235262bc21657f0693501ac1154e1443578d507.tar.gz forums-d235262bc21657f0693501ac1154e1443578d507.tar.bz2 forums-d235262bc21657f0693501ac1154e1443578d507.tar.xz forums-d235262bc21657f0693501ac1154e1443578d507.zip | |
[ticket/10586] Adding the extensions used by the tests
PHPBB3-10586
Diffstat (limited to 'tests/functional/fixtures/ext/error')
6 files changed, 69 insertions, 0 deletions
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 @@ +<?php + +class phpbb_ext_foobar_controller implements phpbb_extension_controller_interface +{ + public function handle() + { + global $template; + $template->set_ext_dir_prefix($phpbb_root_path . 'ext/error/class/'); + + $template->set_filenames(array( + 'body' => 'index_body.html' + )); + + page_header('Test extension'); + page_footer(); + } +} diff --git a/tests/functional/fixtures/ext/error/class/ext.php b/tests/functional/fixtures/ext/error/class/ext.php new file mode 100644 index 0000000000..f97ad2b838 --- /dev/null +++ b/tests/functional/fixtures/ext/error/class/ext.php @@ -0,0 +1,6 @@ +<?php + +class phpbb_ext_error_class_ext extends phpbb_extension_base +{ + +} diff --git a/tests/functional/fixtures/ext/error/classtype/controller.php b/tests/functional/fixtures/ext/error/classtype/controller.php new file mode 100644 index 0000000000..2276548b55 --- /dev/null +++ b/tests/functional/fixtures/ext/error/classtype/controller.php @@ -0,0 +1,17 @@ +<?php + +class phpbb_ext_error_classtype_controller +{ + public function handle() + { + global $template; + $template->set_ext_dir_prefix($phpbb_root_path . 'ext/error/classtype/'); + + $template->set_filenames(array( + 'body' => 'index_body.html' + )); + + page_header('Test extension'); + page_footer(); + } +} diff --git a/tests/functional/fixtures/ext/error/classtype/ext.php b/tests/functional/fixtures/ext/error/classtype/ext.php new file mode 100644 index 0000000000..35b1cd15a2 --- /dev/null +++ b/tests/functional/fixtures/ext/error/classtype/ext.php @@ -0,0 +1,6 @@ +<?php + +class phpbb_ext_error_classtype_ext extends phpbb_extension_base +{ + +} diff --git a/tests/functional/fixtures/ext/error/disabled/controller.php b/tests/functional/fixtures/ext/error/disabled/controller.php new file mode 100644 index 0000000000..b83a949020 --- /dev/null +++ b/tests/functional/fixtures/ext/error/disabled/controller.php @@ -0,0 +1,17 @@ +<?php + +class phpbb_ext_error_disabled_controller implements phpbb_extension_controller_interface +{ + public function handle() + { + global $template; + $template->set_ext_dir_prefix($phpbb_root_path . 'ext/error/disabled/'); + + $template->set_filenames(array( + 'body' => 'index_body.html' + )); + + page_header('Test extension'); + page_footer(); + } +} diff --git a/tests/functional/fixtures/ext/error/disabled/ext.php b/tests/functional/fixtures/ext/error/disabled/ext.php new file mode 100644 index 0000000000..aec8051848 --- /dev/null +++ b/tests/functional/fixtures/ext/error/disabled/ext.php @@ -0,0 +1,6 @@ +<?php + +class phpbb_ext_error_disabled_ext extends phpbb_extension_base +{ + +} |
