当前位置: 首页>>代码示例>>PHP>>正文


PHP DokuWikiTest::setup方法代码示例

本文整理汇总了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';
 }
开发者ID:richmahn,项目名称:Door43,代码行数:8,代码来源:common_mediainfo.test.php

示例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']);
     }
 }
开发者ID:richmahn,项目名称:Door43,代码行数:12,代码来源:changelog_getrevisions.test.php

示例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');
 }
开发者ID:nuffer,项目名称:ProjectApp,代码行数:12,代码来源:indexmenu_syntax_indexmenu.test.php

示例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');
 }
开发者ID:mattandwhatnot,项目名称:plugin-include,代码行数:24,代码来源:namespace_includes.test.php

示例5: setup

 public function setup()
 {
     $this->pluginsEnabled[] = 'include';
     parent::setup();
 }
开发者ID:omusico,项目名称:isle-web-framework,代码行数:5,代码来源:safeindex.test.php

示例6: setup

 public function setup()
 {
     $this->pluginsEnabled[] = 'datepicker';
     $this->pluginsEnabled[] = 'ajaxedit';
     parent::setup();
 }
开发者ID:araname,项目名称:datepicker,代码行数:6,代码来源:syntax.test.php

示例7: setup

 function setup()
 {
     $this->pluginsEnabled[] = 'tag';
     $this->pluginsEnabled[] = 'pagelist';
     parent::setup();
 }
开发者ID:omusico,项目名称:isle-web-framework,代码行数:6,代码来源:topic_tag.test.php


注:本文中的DokuWikiTest::setup方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。