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    {
19        $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'dokuwikiStarted');
20    }
21
22    public function dokuwikiStarted()
23    {
24        $param = [];
25        Event::createAndTrigger('TESTING_PLUGIN_INSTALLED', $param);
26        msg('The testing plugin is enabled and should be disabled.', -1);
27    }
28}
29