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