diff options
| author | Cesar G <prototech91@gmail.com> | 2013-12-12 04:29:48 -0800 |
|---|---|---|
| committer | Cesar G <prototech91@gmail.com> | 2013-12-12 10:52:51 -0800 |
| commit | 31234b26d892bb4d98c9bc869d340a8ccf3cfe88 (patch) | |
| tree | 435d11d23051c7a6eb086380e795927464c96f2b /tests/extension/ext/vendor2/foo/acp | |
| parent | 4d65727accb097641f72e8bf24c5a194873affc7 (diff) | |
| download | forums-31234b26d892bb4d98c9bc869d340a8ccf3cfe88.tar forums-31234b26d892bb4d98c9bc869d340a8ccf3cfe88.tar.gz forums-31234b26d892bb4d98c9bc869d340a8ccf3cfe88.tar.bz2 forums-31234b26d892bb4d98c9bc869d340a8ccf3cfe88.tar.xz forums-31234b26d892bb4d98c9bc869d340a8ccf3cfe88.zip | |
[ticket/12009] Move valid extensions in tests to correct dir structure.
PHPBB3-12009
Diffstat (limited to 'tests/extension/ext/vendor2/foo/acp')
| -rw-r--r-- | tests/extension/ext/vendor2/foo/acp/a_info.php | 18 | ||||
| -rw-r--r-- | tests/extension/ext/vendor2/foo/acp/a_module.php | 7 | ||||
| -rw-r--r-- | tests/extension/ext/vendor2/foo/acp/fail_info.php | 22 | ||||
| -rw-r--r-- | tests/extension/ext/vendor2/foo/acp/fail_module.php | 11 |
4 files changed, 58 insertions, 0 deletions
diff --git a/tests/extension/ext/vendor2/foo/acp/a_info.php b/tests/extension/ext/vendor2/foo/acp/a_info.php new file mode 100644 index 0000000000..27e67c1556 --- /dev/null +++ b/tests/extension/ext/vendor2/foo/acp/a_info.php @@ -0,0 +1,18 @@ +<?php + +namespace vendor2\foo\acp; + +class a_info +{ + public function module() + { + return array( + 'filename' => 'vendor2\\foo\\acp\\a_module', + 'title' => 'Foobar', + 'version' => '3.1.0-dev', + 'modes' => array( + 'config' => array('title' => 'Config', 'auth' => '', 'cat' => array('ACP_MODS')), + ), + ); + } +} diff --git a/tests/extension/ext/vendor2/foo/acp/a_module.php b/tests/extension/ext/vendor2/foo/acp/a_module.php new file mode 100644 index 0000000000..78d91af2fe --- /dev/null +++ b/tests/extension/ext/vendor2/foo/acp/a_module.php @@ -0,0 +1,7 @@ +<?php + +namespace vendor2\foo\acp; + +class a_module +{ +} diff --git a/tests/extension/ext/vendor2/foo/acp/fail_info.php b/tests/extension/ext/vendor2/foo/acp/fail_info.php new file mode 100644 index 0000000000..d9b4353957 --- /dev/null +++ b/tests/extension/ext/vendor2/foo/acp/fail_info.php @@ -0,0 +1,22 @@ +<?php + +namespace vendor2\foo\acp; + +/* +* Due to the mismatch between the class name and the file name, this module +* file shouldn't be found by the extension finder +*/ +class foo_info +{ + public function module() + { + return array( + 'filename' => 'vendor2\foo\acp\fail_module', + 'title' => 'Foobar', + 'version' => '3.1.0-dev', + 'modes' => array( + 'config' => array('title' => 'Config', 'auth' => '', 'cat' => array('ACP_MODS')), + ), + ); + } +} diff --git a/tests/extension/ext/vendor2/foo/acp/fail_module.php b/tests/extension/ext/vendor2/foo/acp/fail_module.php new file mode 100644 index 0000000000..c8a5eae745 --- /dev/null +++ b/tests/extension/ext/vendor2/foo/acp/fail_module.php @@ -0,0 +1,11 @@ +<?php + +namespace vendor2\foo\acp; + +/* +* Due to the mismatch between the class name and the file name of the module +* info file, this module's info file shouldn't be found +*/ +class fail_module +{ +} |
