mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
[ticket/11465] Add phpBB module to test
PHPBB3-11465
This commit is contained in:
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')),
|
'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);
|
), $acp_modules);
|
||||||
|
|
||||||
$this->acp_modules->module_class = 'mcp';
|
$this->acp_modules->module_class = 'mcp';
|
||||||
|
Reference in New Issue
Block a user