aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSatoshi Sahara <sahara.satoshi@gmail.com>2020-01-20 18:16:47 +0900
committerSatoshi Sahara <sahara.satoshi@gmail.com>2020-01-20 18:16:47 +0900
commitc083b3ca756a18a4504178c2ee9d1faf02e7efd9 (patch)
treee442bf24d7bcd387bedb6ce50ebbf2d492376e76
parent6b1347143ee1a697913f158d713b7caf807d2bc6 (diff)
downloaddokuwiki-c083b3ca756a18a4504178c2ee9d1faf02e7efd9.tar.gz
dokuwiki-c083b3ca756a18a4504178c2ee9d1faf02e7efd9.zip
create PluginUtils.test.php
-rw-r--r--_test/tests/inc/PluginUtils.test.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/_test/tests/inc/PluginUtils.test.php b/_test/tests/inc/PluginUtils.test.php
new file mode 100644
index 000000000..7ddad3af7
--- /dev/null
+++ b/_test/tests/inc/PluginUtils.test.php
@@ -0,0 +1,23 @@
+<?php
+
+class PluginUtilsTest extends DokuWikiTest
+{
+ /**
+ * @covers ::plugin_list()
+ */
+ public function test_cache_cleaning_cleanToUnclean()
+ {
+ $expectedListOfPlugins = [
+ 'acl',
+ 'authplain',
+ 'config',
+ 'info',
+ 'popularity',
+ 'revert',
+ 'safefnrecode',
+ 'usermanager',
+ ];
+
+ $this->assertEquals($expectedListOfPlugins, plugin_list());
+ }
+}