Changeset 31622
- Timestamp:
- 03/05/2015 01:14:15 PM (10 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesScreen.php
r26456 r31622 38 38 39 39 function tearDown() { 40 parent::tearDown();41 40 unset( $GLOBALS['wp_taxonomies']['old-or-new'] ); 42 41 set_current_screen( 'front' ); 42 parent::tearDown(); 43 43 } 44 44 -
trunk/tests/phpunit/tests/ajax/Autosave.php
r26995 r31622 47 47 */ 48 48 public function tearDown() { 49 wp_set_current_user( 0 ); 49 50 parent::tearDown(); 50 wp_set_current_user( 0 );51 51 } 52 52 -
trunk/tests/phpunit/tests/ajax/ReplytoComment.php
r31277 r31622 44 44 45 45 public function tearDown() { 46 remove_filter( 'query', array( $this, '_block_comments' ) ); 46 47 parent::tearDown(); 47 remove_filter( 'query', array( $this, '_block_comments' ) );48 48 } 49 49 -
trunk/tests/phpunit/tests/ajax/Response.php
r25002 r31622 37 37 */ 38 38 public function tearDown() { 39 parent::tearDown();40 39 remove_filter( 'wp_die_ajax_handler', array( $this, 'getDieHandler' ), 1, 1 ); 41 40 error_reporting( $this->_error_level ); 41 parent::tearDown(); 42 42 } 43 43 -
trunk/tests/phpunit/tests/basic.php
r28631 r31622 14 14 15 15 function tearDown() { 16 $this->val = false; 16 17 parent::tearDown(); 17 $this->val = false;18 18 } 19 19 -
trunk/tests/phpunit/tests/cache.php
r25002 r31622 15 15 16 16 function tearDown() { 17 $this->flush_cache(); 17 18 parent::tearDown(); 18 $this->flush_cache();19 19 } 20 20 -
trunk/tests/phpunit/tests/canonical.php
r30282 r31622 24 24 25 25 public function tearDown() { 26 wp_set_current_user( self::$old_current_user ); 26 27 parent::tearDown(); 27 wp_set_current_user( self::$old_current_user );28 28 } 29 29 -
trunk/tests/phpunit/tests/canonical/pageOnFront.php
r30277 r31622 27 27 function tearDown() { 28 28 global $wp_rewrite; 29 $wp_rewrite->init(); 29 30 parent::tearDown(); 30 $wp_rewrite->init();31 31 } 32 32 -
trunk/tests/phpunit/tests/category.php
r31006 r31622 11 11 12 12 function tearDown() { 13 _unregister_taxonomy( 'test_tax_cat' ); 13 14 parent::tearDown(); 14 15 _unregister_taxonomy( 'test_tax_cat' );16 15 } 17 16 -
trunk/tests/phpunit/tests/comment/getCommentsPagesCount.php
r27055 r31622 27 27 */ 28 28 function tearDown() { 29 parent::tearDown();30 29 update_option( 'page_comments', $this->option_page_comments ); 31 30 update_option( 'comments_per_page', $this->option_page_comments ); 32 31 update_option( 'thread_comments', $this->option_page_comments ); 33 32 update_option( 'posts_per_rss', $this->option_posts_per_rss ); 33 parent::tearDown(); 34 34 } 35 35 -
trunk/tests/phpunit/tests/cron.php
r29939 r31622 14 14 15 15 function tearDown() { 16 parent::tearDown();17 16 // make sure the schedule is clear 18 17 _set_cron_array(array()); 18 parent::tearDown(); 19 19 } 20 20 -
trunk/tests/phpunit/tests/customize/manager.php
r31370 r31622 17 17 18 18 function tearDown() { 19 parent::tearDown();20 19 $this->manager = null; 21 20 unset( $GLOBALS['wp_customize'] ); 21 parent::tearDown(); 22 22 } 23 23 -
trunk/tests/phpunit/tests/customize/setting.php
r31342 r31622 27 27 28 28 function tearDown() { 29 parent::tearDown();30 29 $this->manager = null; 31 30 unset( $GLOBALS['wp_customize'] ); 31 parent::tearDown(); 32 32 } 33 33 -
trunk/tests/phpunit/tests/customize/widgets.php
r31426 r31622 36 36 37 37 function tearDown() { 38 parent::tearDown();39 38 $this->manager = null; 40 39 unset( $GLOBALS['wp_customize'] ); 41 40 unset( $GLOBALS['wp_scripts'] ); 41 parent::tearDown(); 42 42 } 43 43 -
trunk/tests/phpunit/tests/image/base.php
r30549 r31622 23 23 */ 24 24 public function tearDown() { 25 remove_filter( 'wp_image_editors', array( $this, 'setEngine' ), 10, 2 ); 25 26 parent::tearDown(); 26 27 remove_filter( 'wp_image_editors', array( $this, 'setEngine' ), 10, 2 );28 27 } 29 28 -
trunk/tests/phpunit/tests/link.php
r31114 r31622 7 7 function tearDown() { 8 8 global $wp_rewrite; 9 $wp_rewrite->init(); 9 10 parent::tearDown(); 10 $wp_rewrite->init();11 11 } 12 12 -
trunk/tests/phpunit/tests/mail.php
r30516 r31622 12 12 13 13 function tearDown() { 14 unset( $_SERVER['SERVER_NAME'] ); 14 15 parent::tearDown(); 15 unset( $_SERVER['SERVER_NAME'] );16 16 } 17 17 -
trunk/tests/phpunit/tests/multisite/bootstrap.php
r29916 r31622 22 22 function tearDown() { 23 23 global $wpdb; 24 $wpdb->suppress_errors( $this->suppress ); 24 25 parent::tearDown(); 25 $wpdb->suppress_errors( $this->suppress );26 26 } 27 27 -
trunk/tests/phpunit/tests/multisite/ms-files-rewriting.php
r30404 r31622 30 30 31 31 update_site_option( 'ms_files_rewriting', 0 ); 32 $wpdb->suppress_errors( $this->suppress ); 33 32 34 parent::tearDown(); 33 $wpdb->suppress_errors( $this->suppress );34 35 } 35 36 -
trunk/tests/phpunit/tests/multisite/network.php
r30559 r31622 23 23 function tearDown() { 24 24 global $wpdb; 25 $wpdb->suppress_errors( $this->suppress ); 25 26 parent::tearDown(); 26 $wpdb->suppress_errors( $this->suppress );27 27 } 28 28 -
trunk/tests/phpunit/tests/multisite/site.php
r31158 r31622 22 22 function tearDown() { 23 23 global $wpdb; 24 $wpdb->suppress_errors( $this->suppress ); 24 25 parent::tearDown(); 25 $wpdb->suppress_errors( $this->suppress );26 26 } 27 27 -
trunk/tests/phpunit/tests/option/multisite.php
r29916 r31622 23 23 function tearDown() { 24 24 global $wpdb; 25 $wpdb->suppress_errors( $this->suppress ); 25 26 parent::tearDown(); 26 $wpdb->suppress_errors( $this->suppress );27 27 } 28 28 -
trunk/tests/phpunit/tests/post/meta.php
r25002 r31622 34 34 35 35 function tearDown() { 36 parent::tearDown();37 36 wp_delete_post($this->post_id); 38 37 wp_delete_post($this->post_id_2); 38 parent::tearDown(); 39 39 } 40 40 -
trunk/tests/phpunit/tests/post/revisions.php
r30511 r31622 13 13 14 14 function tearDown() { 15 unset( $GLOBALS['wp_post_types'][ $this->post_type ] ); 15 16 parent::tearDown(); 16 unset( $GLOBALS['wp_post_types'][ $this->post_type ] );17 17 } 18 18 -
trunk/tests/phpunit/tests/query/conditionals.php
r31458 r31622 35 35 function tearDown() { 36 36 global $wp_rewrite; 37 $wp_rewrite->init(); 38 37 39 parent::tearDown(); 38 $wp_rewrite->init();39 40 } 40 41 -
trunk/tests/phpunit/tests/query/isTerm.php
r31286 r31622 60 60 function tearDown() { 61 61 global $wp_rewrite; 62 63 _unregister_taxonomy( 'testtax' ); 64 65 $wp_rewrite->init(); 66 67 remove_action( 'pre_get_posts', array( $this, 'pre_get_posts_tax_category_tax_query' ) ); 62 68 parent::tearDown(); 63 64 _unregister_taxonomy( 'testtax' );65 66 $wp_rewrite->init();67 68 remove_action( 'pre_get_posts', array( $this, 'pre_get_posts_tax_category_tax_query' ) );69 69 } 70 70 -
trunk/tests/phpunit/tests/query/search.php
r27474 r31622 19 19 20 20 function tearDown() { 21 parent::tearDown();22 23 21 _unregister_post_type( $this->post_type ); 24 22 unset( $this->q ); 23 24 parent::tearDown(); 25 25 } 26 26 -
trunk/tests/phpunit/tests/rewrite.php
r28966 r31622 23 23 function tearDown() { 24 24 global $wp_rewrite; 25 $wp_rewrite->init(); 26 25 27 parent::tearDown(); 26 $wp_rewrite->init();27 28 } 28 29 -
trunk/tests/phpunit/tests/shortcode.php
r30290 r31622 21 21 function tearDown() { 22 22 global $shortcode_tags; 23 parent::tearDown();24 23 foreach ( $this->shortcodes as $shortcode ) 25 24 unset( $shortcode_tags[ $shortcode ] ); 25 parent::tearDown(); 26 26 } 27 27 -
trunk/tests/phpunit/tests/user/countUserPosts.php
r30512 r31622 58 58 59 59 public function tearDown() { 60 _unregister_post_type( 'wptests_pt' ); 60 61 parent::tearDown(); 61 _unregister_post_type( 'wptests_pt' );62 62 } 63 63 -
trunk/tests/phpunit/tests/user/mapMetaCap.php
r27390 r31622 33 33 34 34 function tearDown() { 35 parent::tearDown();36 37 35 $GLOBALS['super_admins'] = $this->super_admins; 38 36 unset( $GLOBALS['wp_post_types'][ $this->post_type ] ); 37 parent::tearDown(); 39 38 } 40 39 -
trunk/tests/phpunit/tests/user/multisite.php
r29937 r31622 23 23 function tearDown() { 24 24 global $wpdb; 25 $wpdb->suppress_errors( $this->suppress ); 25 26 parent::tearDown(); 26 $wpdb->suppress_errors( $this->suppress );27 27 } 28 28 -
trunk/tests/phpunit/tests/xmlrpc/wp/getPage.php
r25002 r31622 25 25 26 26 function tearDown() { 27 wp_delete_post( $this->post_id ); 27 28 parent::tearDown(); 28 29 wp_delete_post( $this->post_id );30 29 } 31 30
Note: See TracChangeset
for help on using the changeset viewer.