aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extension/ext
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-01-19 23:32:07 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-01-19 23:32:07 +0100
commit0defce65c8ade296523cd9f5788c2abf43c73513 (patch)
tree94e614fdcbf8a6416191773c14746129a6b22f55 /tests/extension/ext
parente954b0b82b9fe873211bdd8885aefb78284f0893 (diff)
downloadforums-0defce65c8ade296523cd9f5788c2abf43c73513.tar
forums-0defce65c8ade296523cd9f5788c2abf43c73513.tar.gz
forums-0defce65c8ade296523cd9f5788c2abf43c73513.tar.bz2
forums-0defce65c8ade296523cd9f5788c2abf43c73513.tar.xz
forums-0defce65c8ade296523cd9f5788c2abf43c73513.zip
[ticket/13733] Properly test setting validate_classes to false/true
PHPBB3-13733
Diffstat (limited to 'tests/extension/ext')
-rw-r--r--tests/extension/ext/vendor2/bar/migrations/bar.php7
-rw-r--r--tests/extension/ext/vendor2/bar/migrations/foo.php54
2 files changed, 61 insertions, 0 deletions
diff --git a/tests/extension/ext/vendor2/bar/migrations/bar.php b/tests/extension/ext/vendor2/bar/migrations/bar.php
new file mode 100644
index 0000000000..ea5ddb6b8b
--- /dev/null
+++ b/tests/extension/ext/vendor2/bar/migrations/bar.php
@@ -0,0 +1,7 @@
+<?php
+
+namespace vendor2\foo\migrations;
+
+class bar
+{
+}
diff --git a/tests/extension/ext/vendor2/bar/migrations/foo.php b/tests/extension/ext/vendor2/bar/migrations/foo.php
new file mode 100644
index 0000000000..d727c2f954
--- /dev/null
+++ b/tests/extension/ext/vendor2/bar/migrations/foo.php
@@ -0,0 +1,54 @@
+<?php
+
+namespace vendor2\foo\migrations;
+
+class foo implements \phpbb\db\migration\migration_interface
+{
+ /**
+ * {@inheritdoc}
+ */
+ static public function depends_on()
+ {
+ return array();
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function effectively_installed()
+ {
+ return false;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function update_schema()
+ {
+ return array();
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function revert_schema()
+ {
+ return array();
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function update_data()
+ {
+ return array();
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function revert_data()
+ {
+ return array();
+ }
+}