當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。