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


PHP _reset_wp函数代码示例

本文整理汇总了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'));
 }
开发者ID:johnbintz,项目名称:comicpress-core,代码行数:7,代码来源:ComicPressTest.php

示例2: setUp

 public function setUp()
 {
     global $comicpress_manager;
     _reset_wp();
     $this->cpm = new ComicPressManager();
     $comicpress_manager = $this->cpm;
 }
开发者ID:johnbintz,项目名称:comicpress-manager-1.5,代码行数:7,代码来源:ComicPressManagerTest.php

示例3: setUp

 function setUp()
 {
     _reset_wp();
     $this->fa = new ComicPressBackendFilesystemFactory();
     vfsStreamWrapper::register();
     vfsStreamWrapper::setRoot(new vfsStreamDirectory('root'));
 }
开发者ID:johnbintz,项目名称:comicpress-core,代码行数:7,代码来源:ComicPressBackendFilesystemFactoryTest.php

示例4: setUp

 function setUp()
 {
     _reset_wp();
     $_GET = array();
     _set_current_option('is_admin', true);
     $this->m = new PluginWonderfulViewMain();
 }
开发者ID:johnbintz,项目名称:plugin-wonderful,代码行数:7,代码来源:ViewMainTest.php

示例5: setUp

 function setUp()
 {
     global $post;
     _reset_wp();
     unset($post);
     $this->cp = new ComicPress();
 }
开发者ID:johnbintz,项目名称:comicpress-theme-core,代码行数:7,代码来源:ComicPressTest.php

示例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);
 }
开发者ID:johnbintz,项目名称:hubblesite-daily-image-wordpress,代码行数:7,代码来源:DailyImageWidgetTest.php

示例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();
 }
开发者ID:renanivo,项目名称:WP-Multisite-XML-RPC,代码行数:8,代码来源:multisite-xml-rpc-test.php

示例8: setUp

 function setUp()
 {
     _reset_wp();
     $this->pf = new PostFixtures();
     $_POST = array();
     vfsStreamWrapper::register();
     vfsStreamWrapper::setRoot(new vfsStreamDirectory('root'));
 }
开发者ID:johnbintz,项目名称:post-fixtures,代码行数:8,代码来源:PostFixturesTest.php

示例9: setUp

 function setUp()
 {
     _reset_wp();
     $this->cpmh = new ComicPressMediaHandling();
     $this->default_filter = $this->cpmh->default_filter;
     vfsStreamWrapper::register();
     vfsStreamWrapper::setRoot(new vfsStreamDirectory('root'));
 }
开发者ID:johnbintz,项目名称:comicpress-2.8,代码行数:8,代码来源:ComicPressMediaHandlingTest.php

示例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";
 }
开发者ID:johnbintz,项目名称:what-did-they-say,代码行数:10,代码来源:WDTSTranscriptTest.php

示例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();
 }
开发者ID:johnbintz,项目名称:comicpress-manager-1.5,代码行数:12,代码来源:ComicPressUploadTest.php

示例12: setUp

 function setUp()
 {
     _reset_wp();
     $this->w = new ComicPressGraphicalNavigationWidget();
 }
开发者ID:johnbintz,项目名称:comicpress-2.8,代码行数:5,代码来源:GraphicalNavigationWidgetTest.php

示例13: setUp

 function setUp()
 {
     _reset_wp();
     $this->l = new WDTSLanguageOptions();
 }
开发者ID:johnbintz,项目名称:what-did-they-say,代码行数:5,代码来源:WDTSLanguageOptionsTest.php

示例14: setUp

 function setUp()
 {
     _reset_wp();
     wp_cache_flush();
     $this->css = new ComicPressStoryline();
 }
开发者ID:johnbintz,项目名称:comicpress-core,代码行数:6,代码来源:ComicPressStorylineTest.php

示例15: setUp

 function setUp()
 {
     _reset_wp();
     $_POST = $_REQUEST = array();
     $this->admin = new ComicPressAdmin();
 }
开发者ID:johnbintz,项目名称:comicpress-core,代码行数:6,代码来源:ComicPressAdminTest.php


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