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


PHP WP_UnitTestCase::tearDown方法代码示例

本文整理汇总了PHP中WP_UnitTestCase::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP WP_UnitTestCase::tearDown方法的具体用法?PHP WP_UnitTestCase::tearDown怎么用?PHP WP_UnitTestCase::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WP_UnitTestCase的用法示例。


在下文中一共展示了WP_UnitTestCase::tearDown方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: tearDown

 /**
  * Tear down test.
  */
 function tearDown()
 {
     $this->manager = null;
     unset($GLOBALS['wp_customize']);
     $_REQUEST = array();
     parent::tearDown();
 }
开发者ID:CompositeUK,项目名称:clone.WordPress-Develop,代码行数:10,代码来源:manager.php

示例2: tearDown

 /**
  * Tear down the test fixture.
  * Remove the wp_die() override, restore error reporting
  */
 public function tearDown()
 {
     parent::tearDown();
     remove_filter('wp_die_ajax_handler', array($this, 'getDieHandler'), 1, 1);
     remove_filter('wl_write_log_handler', array($this, 'get_write_log_handler'), 1, 1);
     error_reporting($this->_error_level);
 }
开发者ID:efueger,项目名称:wordlift-plugin,代码行数:11,代码来源:test-ajax.php

示例3: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $_SERVER['HTTP_REFERER'] = '';
     $_SERVER['REQUEST_URI'] = '';
     $_REQUEST['_wp_http_referer'] = '';
 }
开发者ID:dd32,项目名称:wordpress.develop,代码行数:7,代码来源:referer.php

示例4: tearDown

 public function tearDown()
 {
     parent::tearDown();
     foreach (array('click_tracking', 'anon_tracking', 'license_code') as $setting) {
         $saved = \ingot\testing\crud\settings::write($setting, 0);
     }
 }
开发者ID:Ramoonus,项目名称:ingot,代码行数:7,代码来源:tests-settings_crud.php

示例5: tearDown

 /**
  * Finish the test suite for the CASServerPlugin class.
  */
 function tearDown()
 {
     parent::tearDown();
     unset($this->server);
     unset($this->redirect_location);
     remove_filter('wp_redirect', array($this, 'wp_redirect_handler'));
 }
开发者ID:goblindegook,项目名称:wp-cas-server,代码行数:10,代码来源:FiltersTest.php

示例6: tearDown

 function tearDown()
 {
     global $wpdb;
     update_site_option('ms_files_rewriting', 0);
     $wpdb->suppress_errors($this->suppress);
     parent::tearDown();
 }
开发者ID:Benrajalu,项目名称:philRaj,代码行数:7,代码来源:ms-files-rewriting.php

示例7: tearDown

 public function tearDown()
 {
     remove_action('tf_create_options', array($this, 'tf_create_options'));
     $titan = TitanFramework::getInstance('testing');
     $titan->deleteAllOptions();
     parent::tearDown();
 }
开发者ID:majick777,项目名称:Titan-Framework,代码行数:7,代码来源:test-option-color.php

示例8: tearDown

 function tearDown()
 {
     $this->manager = null;
     unset($GLOBALS['wp_customize']);
     unset($GLOBALS['wp_scripts']);
     parent::tearDown();
 }
开发者ID:Benrajalu,项目名称:philRaj,代码行数:7,代码来源:widgets.php

示例9: tearDown

 public function tearDown()
 {
     unset($GLOBALS['l10n']);
     unset($GLOBALS['l10n_unloaded']);
     _get_path_to_translation(null, true);
     parent::tearDown();
 }
开发者ID:kucrut,项目名称:wordpress,代码行数:7,代码来源:localeSwitcher.php

示例10: tearDown

 function tearDown()
 {
     global $wp_rewrite;
     parent::tearDown();
     wp_set_current_user($this->old_current_user);
     $wp_rewrite->init();
 }
开发者ID:boonebgorges,项目名称:wp,代码行数:7,代码来源:canonical.php

示例11: tearDown

 public function tearDown()
 {
     global $locale, $wp_locale;
     $locale = $this->locale_original;
     $wp_locale = $this->wp_locale_original;
     parent::tearDown();
 }
开发者ID:atimmer,项目名称:wordpress-develop-mirror,代码行数:7,代码来源:maybeDeclineDate.php

示例12: tearDown

	/**
	 * tearDown options
	 */
	function tearDown() {
		update_option( 'page_comments', $this->option_page_comments );
		update_option( 'comments_per_page', $this->option_page_comments );
		update_option( 'thread_comments', $this->option_page_comments );
		update_option( 'posts_per_rss', $this->option_posts_per_rss );
		parent::tearDown();
	}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:10,代码来源:getCommentsPagesCount.php

示例13: tearDown

 public function tearDown()
 {
     unregister_post_type('cpt');
     unregister_taxonomy('taxo');
     $this->set_permalink_structure('');
     parent::tearDown();
 }
开发者ID:aaemnnosttv,项目名称:develop.git.wordpress.org,代码行数:7,代码来源:template.php

示例14: tearDown

 public function tearDown()
 {
     parent::tearDown();
     remove_all_filters('bbpnns_dry_run');
     remove_all_filters('bbpnns_skip_reply_notification');
     remove_all_filters('bbpnns_skip_topic_notification');
 }
开发者ID:kosir,项目名称:thatcamp-org,代码行数:7,代码来源:00-notify.php

示例15: tearDown

 public function tearDown()
 {
     parent::tearDown();
     global $wpdb;
     $truncateNewsletterTable = sprintf('TRUNCATE %swpr_newsletters', $wpdb->prefix);
     $wpdb->query($truncateNewsletterTable);
 }
开发者ID:anirut,项目名称:wp-autoresponder,代码行数:7,代码来源:SubscriberTest.php


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