diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-05-20 09:17:37 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-05-20 09:17:37 +0200 |
commit | dae73d6abd9c0621fc75b85072812ae5c31f6d45 (patch) | |
tree | 9ee5dc386e7be96326f16e40f4d7460ff47d7a85 /_test | |
parent | 3bc8c0d72be15e1210feef5c8f4c670d7ab71dc4 (diff) | |
parent | 714ca83d81222f48db9b9db4b216715efe70cdf3 (diff) | |
download | rpg-dae73d6abd9c0621fc75b85072812ae5c31f6d45.tar.gz rpg-dae73d6abd9c0621fc75b85072812ae5c31f6d45.tar.bz2 |
Merge pull request #1156 from splitbrain/refactor_admin_plugin_get
Provide a function to return admin plugin for the page request.
Diffstat (limited to '_test')
-rw-r--r-- | _test/tests/inc/template_include_page.test.php | 8 |
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() { |