xref: /dokuwiki/lib/plugins/testing/action.php (revision 3dc2d50c5fda9c4bf708ff4c26e266ba239af62c)
1f693efbcSTobias Sarnowski<?php
223684d4aSAndreas Gohr/**
323684d4aSAndreas Gohr * Plugin for testing the test system
423684d4aSAndreas Gohr *
523684d4aSAndreas Gohr * This plugin doesn't really do anything and should always be disabled
623684d4aSAndreas Gohr *
723684d4aSAndreas Gohr * @author Tobias Sarnowski <tobias@trustedco.de>
823684d4aSAndreas Gohr */
9f693efbcSTobias Sarnowskiclass action_plugin_testing extends DokuWiki_Action_Plugin {
10e8b5a4f9SAndreas Gohr
11*3dc2d50cSAndreas Gohr    /** @inheritdoc */
12*3dc2d50cSAndreas Gohr    public function register(Doku_Event_Handler $controller) {
13f693efbcSTobias Sarnowski        $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'dokuwikiStarted');
14f693efbcSTobias Sarnowski    }
15f693efbcSTobias Sarnowski
16*3dc2d50cSAndreas Gohr    public function dokuwikiStarted() {
17f693efbcSTobias Sarnowski        $param = array();
18f693efbcSTobias Sarnowski        trigger_event('TESTING_PLUGIN_INSTALLED', $param);
1923684d4aSAndreas Gohr        msg('The testing plugin is enabled and should be disabled.',-1);
20f693efbcSTobias Sarnowski    }
21f693efbcSTobias Sarnowski}
22