本文整理汇总了PHP中DokuWikiTest::setup方法的典型用法代码示例。如果您正苦于以下问题:PHP DokuWikiTest::setup方法的具体用法?PHP DokuWikiTest::setup怎么用?PHP DokuWikiTest::setup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DokuWikiTest
的用法示例。
在下文中一共展示了DokuWikiTest::setup方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setup
function setup()
{
parent::setup();
global $USERINFO;
$USERINFO = array('pass' => '179ad45c6ce2cb97cf1029e212046e81', 'name' => 'Arthur Dent', 'mail' => 'arthur@example.com', 'grps' => array('admin', 'user'));
$_SERVER['REMOTE_USER'] = 'testuser';
$_SERVER['REMOTE_ADDR'] = '1.2.3.4';
}
示例2: setup
function setup()
{
parent::setup();
global $cache_revinfo;
$cache =& $cache_revinfo;
if (isset($cache['nonexist'])) {
unset($cache['nonexist']);
}
if (isset($cache['mailinglist'])) {
unset($cache['mailinglist']);
}
}
示例3: setup
public function setup()
{
global $conf;
$this->pluginsEnabled[] = 'indexmenu';
parent::setup();
//$conf['plugin']['indexmenu']['headpage'] = '';
//$conf['plugin']['indexmenu']['hide_headpage'] = false;
//saveWikiText('titleonly:sub:test', "====== Title ====== \n content", 'created');
//saveWikiText('test', "====== Title ====== \n content", 'created');
//idx_addPage('titleonly:sub:test');
//idx_addPage('test');
}
示例4: setup
/**
* Setup - enable and load the include plugin and create the test pages
*/
public function setup()
{
$this->pluginsEnabled[] = 'include';
parent::setup();
// this enables the include plugin
$this->helper = plugin_load('helper', 'include');
global $conf;
$conf['hidepages'] = 'inclhidden:hidden';
// for testing hidden pages
saveWikiText('inclhidden:hidden', 'Hidden page', 'Created hidden page');
saveWikiText('inclhidden:visible', 'Visible page', 'Created visible page');
// pages on different levels
saveWikiText('incltest:level1', 'Page on level 1', 'Created page on level 1');
saveWikiText('incltest:ns:level2', 'Page on level 2', 'Created page on level 2');
saveWikiText('incltest:ns:ns:level3', 'Page on level 3', 'Created page on level 3');
// for page ordering
saveWikiText('inclorder:page1', 'Page 1', 'Created page 1');
saveWikiText('inclorder:page2', 'Page 2', 'Created page 2');
saveWikiText('inclorder:page3', '{{include_n>10}} Page 3/10', 'created page 3/1');
saveWikiText('inclorder:page4', '{{include_n>2}} Page 4/2', 'created page 4/0');
}
示例5: setup
public function setup()
{
$this->pluginsEnabled[] = 'include';
parent::setup();
}
示例6: setup
public function setup()
{
$this->pluginsEnabled[] = 'datepicker';
$this->pluginsEnabled[] = 'ajaxedit';
parent::setup();
}
示例7: setup
function setup()
{
$this->pluginsEnabled[] = 'tag';
$this->pluginsEnabled[] = 'pagelist';
parent::setup();
}