summaryrefslogtreecommitdiff
path: root/_testing/core/DokuWikiTest.php
diff options
context:
space:
mode:
authorTobias Sarnowski <sarnowski@cosmocode.de>2012-04-17 17:27:27 +0200
committerTobias Sarnowski <sarnowski@cosmocode.de>2012-04-17 17:27:27 +0200
commitf9b8008a4ccae56009894e4052dba80752d562bc (patch)
tree453331a525fc3e09c30ca3e52d85959306fe41bc /_testing/core/DokuWikiTest.php
parente048653b52aad13b5964e1626192ffee2211870b (diff)
downloadrpg-f9b8008a4ccae56009894e4052dba80752d562bc.tar.gz
rpg-f9b8008a4ccae56009894e4052dba80752d562bc.tar.bz2
BROKEN added enable/disable feature for plugins
Diffstat (limited to '_testing/core/DokuWikiTest.php')
-rw-r--r--_testing/core/DokuWikiTest.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/_testing/core/DokuWikiTest.php b/_testing/core/DokuWikiTest.php
index 8ae261a52..2517e25e3 100644
--- a/_testing/core/DokuWikiTest.php
+++ b/_testing/core/DokuWikiTest.php
@@ -42,6 +42,16 @@ abstract class DokuWikiTest extends PHPUnit_Framework_TestCase {
// reset loaded plugins
global $plugin_controller_class, $plugin_controller;
$plugin_controller = new $plugin_controller_class();
+
+ // disable all non-default plugins
+ global $default_plugins;
+ foreach ($plugin_controller->getList() as $plugin) {
+ if (!in_array($plugin, $default_plugins)) {
+ $plugin_controller->disable($plugin);
+ }
+ }
+
+ // reset event handler
global $EVENT_HANDLER;
$EVENT_HANDLER = new Doku_Event_Handler();