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