1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/12026] Add functional test for ucp extension module

PHPBB3-12026
This commit is contained in:
Joas Schilling
2013-12-03 17:57:34 +01:00
parent a5f1dc67b9
commit 9fbeae3e0c
4 changed files with 91 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
<!-- INCLUDE overall_header.html -->
<div id="content">UCP Extension Template Test Passed!</div>
<!-- INCLUDE overall_footer.html -->

View File

@@ -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')),
),
);
}
}

View File

@@ -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';
}
}