本文整理汇总了PHP中DokuWikiTest::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP DokuWikiTest::setUp方法的具体用法?PHP DokuWikiTest::setUp怎么用?PHP DokuWikiTest::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DokuWikiTest
的用法示例。
在下文中一共展示了DokuWikiTest::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
function setUp()
{
parent::setUp();
$this->P = new Doku_Parser();
$this->H = new Doku_Handler();
$this->P->Handler =& $this->H;
}
示例2: setUp
function setUp()
{
global $conf;
parent::setUp();
$conf['plugin']['creole']['precedence'] = 'Creole';
$conf['plugin']['creole']['linebreak'] = 'Whitespace';
}
示例3: setUp
function setUp() {
$this->pluginsEnabled = array(
'testing'
);
parent::setUp();
}
示例4: setUp
function setUp()
{
global $USERINFO;
parent::setUp();
$_SERVER['REMOTE_USER'] = 'testuser';
$USERINFO['grps'] = array('foo', 'bar');
}
示例5: 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);
}
示例6: 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');
}
示例7: 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();
}
示例8: setUp
public function setUp()
{
$this->pluginsEnabled[] = 'include';
$this->pluginsEnabled[] = 'door43translation';
$this->pluginsEnabled[] = 'door43shared';
$this->pluginsEnabled[] = 'door43obs';
parent::setUp();
}
示例9: setUp
/**
* Setup the testing environment
*
* @author Johnathan Pulos <johnathan@missionaldigerati.org>
*/
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/');
}
示例10: setUp
function setUp()
{
$this->importfile = tempnam(TMP_DIR, 'csv');
$this->old_files = $_FILES;
$_FILES = array('import' => array('name' => 'import.csv', 'tmp_name' => $this->importfile, 'type' => 'text/plain', 'size' => 1, 'error' => 0));
$this->usermanager = new admin_mock_usermanager();
parent::setUp();
}
示例11: setUp
function setUp()
{
parent::setUp();
global $AUTH_ACL;
global $auth;
$this->oldAuthAcl = $AUTH_ACL;
$auth = new DokuWiki_Auth_Plugin();
}
示例12: setUp
public function setUp()
{
self::$outputBuffer = '';
$this->pluginsEnabled[] = 'include';
$this->pluginsEnabled[] = 'door43translation';
$this->pluginsEnabled[] = 'door43shared';
$this->pluginsEnabled[] = 'door43obsdocupload';
parent::setUp();
}
示例13: setUp
function setUp()
{
parent::setUp();
global $auth;
global $AUTH_ACL;
$this->oldAuth = $auth;
$this->oldAuthAcl = $AUTH_ACL;
$auth = new auth_acl_caseinsensitive_auth();
}
示例14: 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());
}
示例15: setUp
public function setUp()
{
parent::setUp();
if (extension_loaded('zlib')) {
$this->extensions[] = 'tgz';
}
if (extension_loaded('bz2')) {
$this->extensions[] = 'tbz';
}
}