mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11465] Add disabled ext to allow proper testing of get_module_infos()
This will now also enable us to test the $use_all_available parameter of get_module_infos(), which will not only return the module infos for enabled extensions but also those from disabled extensions. PHPBB3-11465
This commit is contained in:
16
tests/extension/ext/barfoo/acp/a_info.php
Normal file
16
tests/extension/ext/barfoo/acp/a_info.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
class phpbb_ext_barfoo_acp_a_info
|
||||
{
|
||||
public function module()
|
||||
{
|
||||
return array(
|
||||
'filename' => 'phpbb_ext_barfoo_acp_a_module',
|
||||
'title' => 'Barfoo',
|
||||
'version' => '3.1.0-dev',
|
||||
'modes' => array(
|
||||
'config' => array('title' => 'Config', 'auth' => '', 'cat' => array('ACP_MODS')),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
5
tests/extension/ext/barfoo/acp/a_module.php
Normal file
5
tests/extension/ext/barfoo/acp/a_module.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
class phpbb_ext_barfoo_acp_a_module
|
||||
{
|
||||
}
|
5
tests/extension/ext/barfoo/ext.php
Normal file
5
tests/extension/ext/barfoo/ext.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
class phpbb_ext_barfoo_ext extends phpbb_extension_base
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user