summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2015-05-16 19:07:23 +0200
committerChristopher Smith <chris@jalakai.co.uk>2015-05-16 19:07:23 +0200
commita61966c55d9d0ac4b800d65cfc6ee1aea44899b5 (patch)
treeac4dc0bb88c5efe6e0fdcb834f3a185eb6741fe7 /_test
parentc248bda1dcbef2068071904057b8410aa1eb0200 (diff)
downloadrpg-a61966c55d9d0ac4b800d65cfc6ee1aea44899b5.tar.gz
rpg-a61966c55d9d0ac4b800d65cfc6ee1aea44899b5.tar.bz2
Provide a function to return admin plugin for the page request.
This was previously carried out in three separate places. Refactor that code to use the new function. Update tpl_pageTitle test to use a manager level admin plugin.
Diffstat (limited to '_test')
-rw-r--r--_test/tests/inc/template_include_page.test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/_test/tests/inc/template_include_page.test.php b/_test/tests/inc/template_include_page.test.php
index 580221979..7dd13ba23 100644
--- a/_test/tests/inc/template_include_page.test.php
+++ b/_test/tests/inc/template_include_page.test.php
@@ -34,17 +34,17 @@ class template_pagetitle_test extends DokuWikiTest {
function test_adminPluginTitle() {
global $ID,$ACT,$INPUT,$conf;
- if (!plugin_load('admin','config')) {
- $this->markTestSkipped('Plugin Config not found, unable to test admin plugin titles');
+ if (!plugin_load('admin','revert')) {
+ $this->markTestSkipped('Revert plugin not found, unable to test admin plugin titles');
return;
}
$ID = 'foo:bar';
$ACT = 'admin';
$conf['lang'] = 'en';
- $INPUT->set('page','config');
+ $INPUT->set('page','revert');
- $this->assertEquals('Configuration Settings', tpl_pagetitle(null, true));
+ $this->assertEquals('Revert Manager', tpl_pagetitle(null, true));
}
function test_nonPageFunctionTitle() {