本文整理汇总了PHP中_reset_wp函数的典型用法代码示例。如果您正苦于以下问题:PHP _reset_wp函数的具体用法?PHP _reset_wp怎么用?PHP _reset_wp使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_reset_wp函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
function setUp()
{
_reset_wp();
$this->cp = new ComicPress();
vfsStreamWrapper::register();
vfsStreamWrapper::setRoot(new vfsStreamDirectory('root'));
}
示例2: setUp
public function setUp()
{
global $comicpress_manager;
_reset_wp();
$this->cpm = new ComicPressManager();
$comicpress_manager = $this->cpm;
}
示例3: setUp
function setUp()
{
_reset_wp();
$this->fa = new ComicPressBackendFilesystemFactory();
vfsStreamWrapper::register();
vfsStreamWrapper::setRoot(new vfsStreamDirectory('root'));
}
示例4: setUp
function setUp()
{
_reset_wp();
$_GET = array();
_set_current_option('is_admin', true);
$this->m = new PluginWonderfulViewMain();
}
示例5: setUp
function setUp()
{
global $post;
_reset_wp();
unset($post);
$this->cp = new ComicPress();
}
示例6: testGetDefaultDisplayOptions
function testGetDefaultDisplayOptions()
{
_reset_wp();
$this->assertFalse(get_option('hubblesite-daily-image-options'));
$this->diw->get_display_options();
$this->assertTrue(get_option('hubblesite-daily-image-options') !== false);
}
示例7: setUp
function setUp()
{
global $wp_xmlrpc_server, $wpdb;
$wp_xmlrpc_server = $this->getMock('wp_xmlrpc_server', array('escape', 'login'));
$wp_xmlrpc_server->expects($this->atLeastOnce())->method('escape')->will($this->returnArgument(0));
$wpdb = $this->getMock('wpdb', array('get_results', 'prepare'));
_reset_wp();
}
示例8: setUp
function setUp()
{
_reset_wp();
$this->pf = new PostFixtures();
$_POST = array();
vfsStreamWrapper::register();
vfsStreamWrapper::setRoot(new vfsStreamDirectory('root'));
}
示例9: setUp
function setUp()
{
_reset_wp();
$this->cpmh = new ComicPressMediaHandling();
$this->default_filter = $this->cpmh->default_filter;
vfsStreamWrapper::register();
vfsStreamWrapper::setRoot(new vfsStreamDirectory('root'));
}
示例10: setUp
function setUp()
{
_reset_wp();
wp_insert_user(array('ID' => 1));
wp_set_current_user(1);
wp_insert_post(array('ID' => 1));
$this->w = new WDTSTranscriptManager(1);
$this->w->key = "test";
$this->w->search_key = "test_search";
}
示例11: setUp
function setUp()
{
global $comicpress_manager;
_reset_wp();
$comicpress_manager = $this->getMock('ComicPressManager', array('generate_example_date', 'get_subcomic_directory', 'normalize_storyline_structure'));
$comicpress_manager->expects($this->once())->method('generate_example_date');
$comicpress_manager->expects($this->once())->method('get_subcomic_directory')->will($this->returnValue(false));
$comicpress_manager->expects($this->once())->method('normalize_storyline_structure')->will($this->returnValue(array('category_tree' => array('0/1'))));
$comicpress_manager->properties = array('comiccat' => 1);
add_category(1, (object) array('name' => 'comic'));
$this->u = new ComicPressUpload();
}
示例12: setUp
function setUp()
{
_reset_wp();
$this->w = new ComicPressGraphicalNavigationWidget();
}
示例13: setUp
function setUp()
{
_reset_wp();
$this->l = new WDTSLanguageOptions();
}
示例14: setUp
function setUp()
{
_reset_wp();
wp_cache_flush();
$this->css = new ComicPressStoryline();
}
示例15: setUp
function setUp()
{
_reset_wp();
$_POST = $_REQUEST = array();
$this->admin = new ComicPressAdmin();
}