Changeset 32147
- Timestamp:
- 04/19/2015 05:38:07 AM (9 years ago)
- Location:
- branches/4.1/tests/phpunit/tests
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1/tests/phpunit/tests/admin/includesScreen.php
r26456 r32147 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 -
branches/4.1/tests/phpunit/tests/ajax/Autosave.php
r26995 r32147 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 -
branches/4.1/tests/phpunit/tests/ajax/Response.php
r25002 r32147 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 -
branches/4.1/tests/phpunit/tests/basic.php
r28631 r32147 14 14 15 15 function tearDown() { 16 $this->val = false; 16 17 parent::tearDown(); 17 $this->val = false;18 18 } 19 19 -
branches/4.1/tests/phpunit/tests/cache.php
r25002 r32147 15 15 16 16 function tearDown() { 17 $this->flush_cache(); 17 18 parent::tearDown(); 18 $this->flush_cache();19 19 } 20 20 -
branches/4.1/tests/phpunit/tests/canonical.php
r30282 r32147 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 -
branches/4.1/tests/phpunit/tests/canonical/pageOnFront.php
r30277 r32147 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 -
branches/4.1/tests/phpunit/tests/category.php
r28706 r32147 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 -
branches/4.1/tests/phpunit/tests/comment/getCommentsPagesCount.php
r27055 r32147 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 -
branches/4.1/tests/phpunit/tests/cron.php
r29939 r32147 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 -
branches/4.1/tests/phpunit/tests/customize/manager.php
r31329 r32147 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 -
branches/4.1/tests/phpunit/tests/customize/setting.php
r31410 r32147 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 -
branches/4.1/tests/phpunit/tests/image/base.php
r30549 r32147 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 -
branches/4.1/tests/phpunit/tests/link.php
r30401 r32147 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 -
branches/4.1/tests/phpunit/tests/mail.php
r30516 r32147 12 12 13 13 function tearDown() { 14 unset( $_SERVER['SERVER_NAME'] ); 14 15 parent::tearDown(); 15 unset( $_SERVER['SERVER_NAME'] );16 16 } 17 17 -
branches/4.1/tests/phpunit/tests/multisite/bootstrap.php
r29916 r32147 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 -
branches/4.1/tests/phpunit/tests/multisite/ms-files-rewriting.php
r30404 r32147 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 -
branches/4.1/tests/phpunit/tests/multisite/network.php
r30559 r32147 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 -
branches/4.1/tests/phpunit/tests/multisite/site.php
r30786 r32147 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 -
branches/4.1/tests/phpunit/tests/option/multisite.php
r29916 r32147 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 -
branches/4.1/tests/phpunit/tests/post/meta.php
r25002 r32147 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 -
branches/4.1/tests/phpunit/tests/post/revisions.php
r30511 r32147 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 -
branches/4.1/tests/phpunit/tests/query/conditionals.php
r29932 r32147 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 -
branches/4.1/tests/phpunit/tests/query/search.php
r27474 r32147 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 -
branches/4.1/tests/phpunit/tests/rewrite.php
r28966 r32147 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 -
branches/4.1/tests/phpunit/tests/shortcode.php
r30290 r32147 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 -
branches/4.1/tests/phpunit/tests/user/countUserPosts.php
r30512 r32147 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 -
branches/4.1/tests/phpunit/tests/user/mapMetaCap.php
r27390 r32147 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 -
branches/4.1/tests/phpunit/tests/user/multisite.php
r29937 r32147 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 -
branches/4.1/tests/phpunit/tests/xmlrpc/wp/getPage.php
r25002 r32147 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.