mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/15586] Added tests for adding modules the automatic way
PHPBB3-15586
This commit is contained in:
37
tests/dbal/ext/foo/bar/ucp/ucp_test_info.php
Normal file
37
tests/dbal/ext/foo/bar/ucp/ucp_test_info.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace foo\bar\ucp;
|
||||
|
||||
class ucp_test_info
|
||||
{
|
||||
public function module()
|
||||
{
|
||||
return array(
|
||||
'filename' => '\foo\bar\ucp\ucp_test_module',
|
||||
'title' => 'UCP_NEW_MODULE',
|
||||
'modes' => array(
|
||||
'mode_1' => array(
|
||||
'title' => 'UCP_NEW_MODULE_MODE_1',
|
||||
'auth' => '',
|
||||
'cat' => array('UCP_NEW_MODULE'),
|
||||
),
|
||||
'mode_2' => array(
|
||||
'title' => 'UCP_NEW_MODULE_MODE_2',
|
||||
'auth' => '',
|
||||
'cat' => array('UCP_NEW_MODULE'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
25
tests/dbal/ext/foo/bar/ucp/ucp_test_module.php
Normal file
25
tests/dbal/ext/foo/bar/ucp/ucp_test_module.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace foo\bar\ucp;
|
||||
|
||||
class ucp_test_module
|
||||
{
|
||||
var $u_action;
|
||||
|
||||
function main($id, $mode)
|
||||
{
|
||||
$this->tpl_name = 'foobar';
|
||||
$this->page_title = 'Bertie';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user