Changeset 32150
- Timestamp:
- 04/19/2015 10:54:57 AM (9 years ago)
- Location:
- branches/3.8/tests/phpunit/tests
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8/tests/phpunit/tests/admin/includesScreen.php
r26456 r32150 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/3.8/tests/phpunit/tests/ajax/Response.php
r25002 r32150 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/3.8/tests/phpunit/tests/basic.php
r26489 r32150 15 15 16 16 function tearDown() { 17 $this->val = false; 17 18 parent::tearDown(); 18 $this->val = false;19 19 } 20 20 -
branches/3.8/tests/phpunit/tests/cache.php
r25002 r32150 15 15 16 16 function tearDown() { 17 $this->flush_cache(); 17 18 parent::tearDown(); 18 $this->flush_cache();19 19 } 20 20 -
branches/3.8/tests/phpunit/tests/canonical.php
r26091 r32150 81 81 82 82 function tearDown() { 83 wp_set_current_user( $this->old_current_user ); 84 85 $GLOBALS['wp_rewrite']->init(); 83 86 parent::tearDown(); 84 wp_set_current_user( $this->old_current_user );85 86 $GLOBALS['wp_rewrite']->init();87 87 } 88 88 -
branches/3.8/tests/phpunit/tests/cron.php
r25368 r32150 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/3.8/tests/phpunit/tests/mail.php
r25381 r32150 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/3.8/tests/phpunit/tests/post/meta.php
r25002 r32150 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/3.8/tests/phpunit/tests/post/revisions.php
r25002 r32150 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/3.8/tests/phpunit/tests/query/conditionals.php
r26005 r32150 31 31 32 32 function tearDown() { 33 $GLOBALS['wp_rewrite']->init(); 33 34 parent::tearDown(); 34 $GLOBALS['wp_rewrite']->init();35 35 } 36 36 -
branches/3.8/tests/phpunit/tests/rewrite.php
r25659 r32150 20 20 21 21 function tearDown() { 22 $GLOBALS['wp_rewrite']->init(); 22 23 parent::tearDown(); 23 $GLOBALS['wp_rewrite']->init();24 24 } 25 25 -
branches/3.8/tests/phpunit/tests/shortcode.php
r25002 r32150 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/3.8/tests/phpunit/tests/user/mapMetaCap.php
r25002 r32150 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/3.8/tests/phpunit/tests/xmlrpc/wp/getPage.php
r25002 r32150 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.