From f693efbc01fe2c38ff68e30c9710d633a7ec5cee Mon Sep 17 00:00:00 2001 From: Tobias Sarnowski Date: Wed, 18 Apr 2012 09:43:29 +0200 Subject: added missing testing plugin with tests to test tests --- lib/plugins/testing/action.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/plugins/testing/action.php (limited to 'lib/plugins/testing/action.php') diff --git a/lib/plugins/testing/action.php b/lib/plugins/testing/action.php new file mode 100644 index 000000000..22a670eee --- /dev/null +++ b/lib/plugins/testing/action.php @@ -0,0 +1,13 @@ +register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'dokuwikiStarted'); + } + + function dokuwikiStarted() { + $param = array(); + trigger_event('TESTING_PLUGIN_INSTALLED', $param); + msg('hohoho'); + } +} -- cgit v1.2.3 From 23684d4a1920ae8e92fda68725e49035614f3d8a Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 24 Apr 2012 22:21:05 +0200 Subject: some cleanup for the testing plugin --- lib/plugins/testing/action.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/plugins/testing/action.php') diff --git a/lib/plugins/testing/action.php b/lib/plugins/testing/action.php index 22a670eee..e829847b6 100644 --- a/lib/plugins/testing/action.php +++ b/lib/plugins/testing/action.php @@ -1,5 +1,11 @@ + */ class action_plugin_testing extends DokuWiki_Action_Plugin { function register(&$controller) { $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'dokuwikiStarted'); @@ -8,6 +14,6 @@ class action_plugin_testing extends DokuWiki_Action_Plugin { function dokuwikiStarted() { $param = array(); trigger_event('TESTING_PLUGIN_INSTALLED', $param); - msg('hohoho'); + msg('The testing plugin is enabled and should be disabled.',-1); } } -- cgit v1.2.3