mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/11465] Add phpBB module to test
PHPBB3-11465
This commit is contained in:
parent
11477a3f18
commit
6110380a35
3 changed files with 62 additions and 0 deletions
28
tests/extension/includes/acp/acp_foobar.php
Normal file
28
tests/extension/includes/acp/acp_foobar.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
*
|
||||
* @package testing
|
||||
* @copyright (c) 2013 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* @package acp
|
||||
*/
|
||||
class acp_foobar
|
||||
{
|
||||
var $u_action;
|
||||
|
||||
function main($id, $mode)
|
||||
{
|
||||
}
|
||||
}
|
26
tests/extension/includes/acp/info/acp_foobar.php
Normal file
26
tests/extension/includes/acp/info/acp_foobar.php
Normal 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
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @package module_install
|
||||
*/
|
||||
class acp_foobar_info
|
||||
{
|
||||
function module()
|
||||
{
|
||||
return array(
|
||||
'filename' => 'acp_foobar',
|
||||
'title' => 'ACP Foobar',
|
||||
'version' => '3.1.0-dev',
|
||||
'modes' => array(
|
||||
'test' => array('title' => 'Test', 'auth' => '', 'cat' => array('ACP_GENERAL')),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
|
@ -53,6 +53,14 @@ class phpbb_extension_modules_test extends phpbb_test_case
|
|||
'config' => array('title' => 'Config', 'auth' => '', 'cat' => array('ACP_MODS')),
|
||||
),
|
||||
),
|
||||
'acp_foobar' => array(
|
||||
'filename' => 'acp_foobar',
|
||||
'title' => 'ACP Foobar',
|
||||
'version' => '3.1.0-dev',
|
||||
'modes' => array(
|
||||
'test' => array('title' => 'Test', 'auth' => '', 'cat' => array('ACP_GENERAL')),
|
||||
),
|
||||
),
|
||||
), $acp_modules);
|
||||
|
||||
$this->acp_modules->module_class = 'mcp';
|
||||
|
|
Loading…
Add table
Reference in a new issue