xref: /dokuwiki/lib/plugins/testing/action.php (revision 482d333c9d67fc947073c3738442921361e6add8)
1<?php
2
3use dokuwiki\Extension\Event;
4
5/**
6 * Plugin for testing the test system
7 *
8 * This plugin doesn't really do anything and should always be disabled
9 *
10 * @author Tobias Sarnowski <tobias@trustedco.de>
11 */
12class action_plugin_testing extends DokuWiki_Action_Plugin {
13
14    /** @inheritdoc */
15    public function register(Doku_Event_Handler $controller) {
16        $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'dokuwikiStarted');
17    }
18
19    public function dokuwikiStarted() {
20        $param = array();
21        Event::createAndTrigger('TESTING_PLUGIN_INSTALLED', $param);
22        msg('The testing plugin is enabled and should be disabled.',-1);
23    }
24}
25