Skip to content
Permalink
Browse files

moved plugin controller to Extension namespace

  • Loading branch information...
splitbrain committed Jun 15, 2018
1 parent 08c53d8 commit bf9f56c0139c15d33ad618fb86c7ce10cc1bc297
@@ -1,5 +1,6 @@
<?php
use dokuwiki\Extension\PluginController;
use dokuwiki\Extension\Event;
use dokuwiki\Extension\EventHandler;
@@ -107,7 +108,7 @@ public function setUp() {
// reset loaded plugins
global $plugin_controller_class, $plugin_controller;
/** @var Doku_Plugin_Controller $plugin_controller */
/** @var PluginController $plugin_controller */
$plugin_controller = new $plugin_controller_class();
// disable all non-default plugins
@@ -148,7 +148,7 @@ function setUp() {
parent::setUp();
// mock plugin controller to return our test plugins
$pluginManager = $this->createMock('Doku_Plugin_Controller');
$pluginManager = $this->createMock('dokuwiki\Extension\PluginController');
$pluginManager->method('getList')->willReturn(array('testplugin', 'testplugin2'));
$pluginManager->method('load')->willReturnCallback(
function($type, $plugin) {
@@ -1,7 +1,7 @@
#!/usr/bin/php
<?php
use dokuwiki\Extension\CLIPlugin;
use dokuwiki\Extension\PluginController;
use splitbrain\phpcli\CLI;
use splitbrain\phpcli\Colors;
use splitbrain\phpcli\Options;
@@ -52,7 +52,7 @@ protected function main(Options $options) {
* List available plugins
*/
protected function listPlugins() {
/** @var Doku_Plugin_Controller $plugin_controller */
/** @var PluginController $plugin_controller */
global $plugin_controller;
echo "\n";
Oops, something went wrong.

0 comments on commit bf9f56c

Please sign in to comment.
You can’t perform that action at this time.