From 211d00a088af147b359418d85fa734cbab4dd395 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <gohr@cosmocode.de> Date: Tue, 30 Oct 2018 14:41:20 +0100 Subject: [PATCH] fix unit test The permissions are now checked also when trying to the title of the plugin. --- _test/tests/inc/template_include_page.test.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_test/tests/inc/template_include_page.test.php b/_test/tests/inc/template_include_page.test.php index 7dd13ba23..ea9e89558 100644 --- a/_test/tests/inc/template_include_page.test.php +++ b/_test/tests/inc/template_include_page.test.php @@ -32,7 +32,9 @@ class template_pagetitle_test extends DokuWikiTest { } function test_adminPluginTitle() { - global $ID,$ACT,$INPUT,$conf; + global $ID,$ACT,$INPUT,$conf,$INFO; + $INFO['isadmin'] = true; + $INFO['ismanager'] = true; if (!plugin_load('admin','revert')) { $this->markTestSkipped('Revert plugin not found, unable to test admin plugin titles'); -- GitLab