本文整理汇总了PHP中DokuWikiTest类的典型用法代码示例。如果您正苦于以下问题:PHP DokuWikiTest类的具体用法?PHP DokuWikiTest怎么用?PHP DokuWikiTest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了DokuWikiTest类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: setUp
function setUp()
{
global $conf;
parent::setUp();
$conf['plugin']['creole']['precedence'] = 'Creole';
$conf['plugin']['creole']['linebreak'] = 'Whitespace';
}
开发者ID:araname,项目名称:plugin-creole,代码行数:7,代码来源:creole.test.php
示例2: tearDown
/**
* Default teardown
*
* we always make sure the database is clear
*/
protected function tearDown()
{
parent::tearDown();
/** @var \helper_plugin_struct_db $db */
$db = plugin_load('helper', 'struct_db');
$db->resetDB();
}
开发者ID:cosmocode,项目名称:dokuwiki-plugin-struct,代码行数:12,代码来源:StructTest.php
示例3: setUp
function setUp()
{
parent::setUp();
$this->P = new Doku_Parser();
$this->H = new Doku_Handler();
$this->P->Handler =& $this->H;
}
开发者ID:richmahn,项目名称:Door43,代码行数:7,代码来源:parser.inc.php
示例4: tearDown
/**
* @coversNothing
*/
public function tearDown()
{
/** @var helper_plugin_move_plan $plan */
$plan = plugin_load('helper', 'move_plan');
$plan->abort();
parent::tearDown();
}
开发者ID:kochichi,项目名称:dokuwiki-plugin-move,代码行数:10,代码来源:affectedPagesNs.test.php
示例5: setUp
function setUp() {
$this->pluginsEnabled = array(
'testing'
);
parent::setUp();
}
开发者ID:neutrinog,项目名称:Door43,代码行数:7,代码来源:dummy_plugin_integration_test.test.php
示例6: setUpBeforeClass
public static function setUpBeforeClass()
{
parent::setUpBeforeClass();
// copy CSS test file to test directory
TestUtils::rcopy(DOKU_INC . '_test/data/tmp', DOKU_INC . 'lib/plugins/odt/_test/dw_css_with_wrap.css');
TestUtils::rcopy(DOKU_INC . '_test/data/tmp', DOKU_INC . 'lib/plugins/odt/_test/dw_css_without_extra_wrap.css');
}
开发者ID:RnBConsulting,项目名称:dokuwiki-plugin-odt,代码行数:7,代码来源:cssimport.test.php
示例7: setUp
function setUp()
{
parent::setUp();
global $AUTH_ACL;
global $auth;
$this->oldAuthAcl = $AUTH_ACL;
$auth = new DokuWiki_Auth_Plugin();
}
开发者ID:richmahn,项目名称:Door43,代码行数:8,代码来源:auth_aclcheck.test.php
示例8: setUp
public function setUp()
{
parent::setUp();
saveWikiText('testpage', 'Foo bar baz.', 'Test initialization');
saveWikiText('notfound', 'Foon barn bazn.', 'Test initialization');
idx_addPage('testpage');
idx_addPage('notfound');
}
开发者ID:richmahn,项目名称:Door43,代码行数:8,代码来源:indexer_indexing.test.php
示例9: setUp
public function setUp()
{
$this->pluginsEnabled[] = 'include';
$this->pluginsEnabled[] = 'door43translation';
$this->pluginsEnabled[] = 'door43shared';
$this->pluginsEnabled[] = 'door43obs';
parent::setUp();
}
开发者ID:richmahn,项目名称:Door43,代码行数:8,代码来源:CreateNow.test.php
示例10: setUp
/**
* Create some page namespace structure
*/
function setUp()
{
$pages = array('animals:mammals:bear:brownbear', 'animals:mammals:bear:blackbear', 'animals:mammals:cute:otter', 'animals:mammals:cute:cat', 'animals:mammals:cute:dog', 'animals:insects:butterfly:fly', 'animals:insects:butterfly:moth', 'animals:monkey', 'humans:programmers:andi', 'humans:programmers:joe', 'humans:programmers:john', 'yeti');
foreach ($pages as $page) {
saveWikiText($page, $page, 'test setup');
}
parent::setUp();
}
开发者ID:kochichi,项目名称:dokuwiki-plugin-move,代码行数:11,代码来源:plan.test.php
示例11: setUp
/**
* Setup the testing environment
*
* @author Johnathan Pulos <[email protected]>
*/
public function setUp()
{
parent::setUp();
$this->plugin = new action_plugin_revhistory();
$this->plugin->testing = true;
$this->eventHandler = $this->getMockBuilder('Doku_Event')->setConstructorArgs(array('ACTION_ACT_PREPROCESS', 'revhistory'))->getMock();
TestUtils::rcopy(TMP_DIR, dirname(__FILE__) . '/data/');
}
开发者ID:richmahn,项目名称:Door43,代码行数:13,代码来源:plugin_revhistory.test.php
示例12: setup
function setup()
{
parent::setup();
global $USERINFO;
$USERINFO = array('pass' => '179ad45c6ce2cb97cf1029e212046e81', 'name' => 'Arthur Dent', 'mail' => '[email protected]', 'grps' => array('admin', 'user'));
$_SERVER['REMOTE_USER'] = 'testuser';
$_SERVER['REMOTE_ADDR'] = '1.2.3.4';
}
开发者ID:richmahn,项目名称:Door43,代码行数:8,代码来源:common_mediainfo.test.php
示例13: setUp
function setUp()
{
parent::setUp();
$this->indexer = idx_get_indexer();
$this->indexer->clear();
saveWikiText($this->old_id, 'Old test content', 'Created old test page for indexer rename test');
idx_addPage($this->old_id);
}
开发者ID:richmahn,项目名称:Door43,代码行数:8,代码来源:indexer_rename.test.php
示例14: setUp
public function setUp()
{
self::$outputBuffer = '';
$this->pluginsEnabled[] = 'include';
$this->pluginsEnabled[] = 'door43translation';
$this->pluginsEnabled[] = 'door43shared';
$this->pluginsEnabled[] = 'door43obsdocupload';
parent::setUp();
}
开发者ID:kidaa,项目名称:Door43,代码行数:9,代码来源:ExportButtons.test.php
示例15: setUp
function setUp()
{
parent::setUp();
global $auth;
global $AUTH_ACL;
$this->oldAuth = $auth;
$this->oldAuthAcl = $AUTH_ACL;
$auth = new auth_acl_caseinsensitive_auth();
}
开发者ID:richmahn,项目名称:Door43,代码行数:9,代码来源:auth_aclcheck_caseinsensitive.test.php
示例16: setUp
public function setUp()
{
parent::setUp();
$this->action = new action_plugin_data();
$this->helper = plugin_load('helper', 'data');
$this->db = $this->helper->_getDB();
$this->db->query('INSERT INTO pages ( pid, page, title , class , lastmod) VALUES
(?, ?, ?, ?, ?)', 1, 'test', 'title', 'class', time());
}
开发者ID:omusico,项目名称:isle-web-framework,代码行数:9,代码来源:action_handle.test.php
示例17: tearDown
/**
* @coversNothing
*/
public function tearDown()
{
/** @var helper_plugin_move_plan $plan */
$plan = plugin_load('helper', 'move_plan');
$plan->abort();
io_rmdir(DOKU_TMP_DATA . "pages/newns", true);
io_rmdir(DOKU_TMP_DATA . "media/newns", true);
io_rmdir(DOKU_TMP_DATA . "meta/newns", true);
parent::tearDown();
}
开发者ID:kochichi,项目名称:dokuwiki-plugin-move,代码行数:13,代码来源:namespace_move.test.php
示例18: setUp
public function setUp()
{
parent::setUp();
if (extension_loaded('zlib')) {
$this->extensions[] = 'tgz';
}
if (extension_loaded('bz2')) {
$this->extensions[] = 'tbz';
}
}
开发者ID:richmahn,项目名称:Door43,代码行数:10,代码来源:tar.test.php
示例19: setUp
public function setUp()
{
parent::setUp();
saveWikiText('foo', "====== Page-Heading ======", 'summary');
$req = new TestRequest();
$req->get(array(), '/doku.php?id=foo');
saveWikiText('testpage', "---- dataentry Testentry ----\n" . "test1_title: foo|bar\n" . "----\n", 'summary');
//trigger save to db
$req = new TestRequest();
$req->get(array(), '/doku.php?id=testpage');
}
开发者ID:RnBConsulting,项目名称:dokuwiki-plugin-data,代码行数:11,代码来源:db.test.php
示例20: setUp
public function setUp()
{
parent::setUp();
$opts_file = dirname(DOKU_CONF) . '/data/meta/__move_opts';
if (file_exists($opts_file)) {
unlink($opts_file);
}
$file = "oldns:page01\tnewns:page01\n" . "oldns:page02\tnewns:page02\n" . "oldns:page03\tnewns:page03\n" . "oldns:page04\tnewns:page04\n" . "oldns:page05\tnewns:page05\n" . "oldns:page06\tnewns:page06\n" . "oldns:page07\tnewns:page07\n" . "oldns:page08\tnewns:page08\n" . "oldns:page09\tnewns:page09\n" . "oldns:page10\tnewns:page10\n" . "oldns:page11\tnewns:page11\n" . "oldns:page12\tnewns:page12\n" . "oldns:page13\tnewns:page13\n" . "oldns:page14\tnewns:page14\n" . "oldns:page15\tnewns:page15\n" . "oldns:page16\tnewns:page16\n" . "oldns:page17\tnewns:page17\n" . "oldns:page18\tnewns:page18";
$file_path = dirname(DOKU_CONF) . '/data/meta/__move_pagelist';
io_saveFile($file_path, $file);
}
开发者ID:kochichi,项目名称:dokuwiki-plugin-move,代码行数:11,代码来源:stepThroughDocuments.test.php
注:本文中的DokuWikiTest类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论