aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extension/ext/vendor2/foo/acp
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2013-12-12 04:29:48 -0800
committerCesar G <prototech91@gmail.com>2013-12-12 10:52:51 -0800
commit31234b26d892bb4d98c9bc869d340a8ccf3cfe88 (patch)
tree435d11d23051c7a6eb086380e795927464c96f2b /tests/extension/ext/vendor2/foo/acp
parent4d65727accb097641f72e8bf24c5a194873affc7 (diff)
downloadforums-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.php18
-rw-r--r--tests/extension/ext/vendor2/foo/acp/a_module.php7
-rw-r--r--tests/extension/ext/vendor2/foo/acp/fail_info.php22
-rw-r--r--tests/extension/ext/vendor2/foo/acp/fail_module.php11
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
+{
+}