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