diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-12-03 17:57:34 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-12-03 18:10:33 +0100 |
commit | 9fbeae3e0ca373f98a6102266f2bb75653e5211a (patch) | |
tree | bd9e62f65ded62f0d8e9f72f0e8c6ba8aa4c883e /tests/functional/fixtures | |
parent | a5f1dc67b9a29b80f584ca753260fb8dbe459a43 (diff) | |
download | forums-9fbeae3e0ca373f98a6102266f2bb75653e5211a.tar forums-9fbeae3e0ca373f98a6102266f2bb75653e5211a.tar.gz forums-9fbeae3e0ca373f98a6102266f2bb75653e5211a.tar.bz2 forums-9fbeae3e0ca373f98a6102266f2bb75653e5211a.tar.xz forums-9fbeae3e0ca373f98a6102266f2bb75653e5211a.zip |
[ticket/12026] Add functional test for ucp extension module
PHPBB3-12026
Diffstat (limited to 'tests/functional/fixtures')
3 files changed, 51 insertions, 0 deletions
diff --git a/tests/functional/fixtures/ext/foo/bar/styles/prosilver/template/foobar.html b/tests/functional/fixtures/ext/foo/bar/styles/prosilver/template/foobar.html new file mode 100644 index 0000000000..cbded623f4 --- /dev/null +++ b/tests/functional/fixtures/ext/foo/bar/styles/prosilver/template/foobar.html @@ -0,0 +1,3 @@ +<!-- INCLUDE overall_header.html --> +<div id="content">UCP Extension Template Test Passed!</div> +<!-- INCLUDE overall_footer.html --> diff --git a/tests/functional/fixtures/ext/foo/bar/ucp/main_info.php b/tests/functional/fixtures/ext/foo/bar/ucp/main_info.php new file mode 100644 index 0000000000..2ba37f3050 --- /dev/null +++ b/tests/functional/fixtures/ext/foo/bar/ucp/main_info.php @@ -0,0 +1,26 @@ +<?php + +/** +* +* @package testing +* @copyright (c) 2013 phpBB Group +* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 +* +*/ + +namespace foo\bar\ucp; + +class main_info +{ + function module() + { + return array( + 'filename' => '\foo\bar\ucp\main_module', + 'title' => 'ACP_FOOBAR_TITLE', + 'version' => '1.0.0', + 'modes' => array( + 'mode' => array('title' => 'ACP_FOOBAR_MODE', 'auth' => '', 'cat' => array('ACP_FOOBAR_TITLE')), + ), + ); + } +} diff --git a/tests/functional/fixtures/ext/foo/bar/ucp/main_module.php b/tests/functional/fixtures/ext/foo/bar/ucp/main_module.php new file mode 100644 index 0000000000..cd3dacc9db --- /dev/null +++ b/tests/functional/fixtures/ext/foo/bar/ucp/main_module.php @@ -0,0 +1,22 @@ +<?php + +/** +* +* @package testing +* @copyright (c) 2013 phpBB Group +* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 +* +*/ + +namespace foo\bar\ucp; + +class main_module +{ + var $u_action; + + function main($id, $mode) + { + $this->tpl_name = 'foobar'; + $this->page_title = 'Bertie'; + } +} |