Make WordPress Core


Ignore:
Timestamp:
03/01/2021 06:42:49 PM (4 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Remove redundant teardown functionality from individual tests which is already covered in the base teardown method.

See #52625

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/multisite/getSpaceAllowed.php

    r48937 r50463  
    1111        protected $suppress = false;
    1212
    13         protected static $original_site_blog_upload_space;
    14         protected static $original_blog_upload_space;
    15 
    16         public static function setUpBeforeClass() {
    17             parent::setUpBeforeClass();
    18 
    19             self::$original_site_blog_upload_space = get_site_option( 'blog_upload_space' );
    20             self::$original_blog_upload_space      = get_option( 'blog_upload_space' );
    21         }
    22 
    2313        public function setUp() {
    2414            global $wpdb;
     
    2919        public function tearDown() {
    3020            global $wpdb;
    31 
    32             /**
    33              * Reset the two `blog_upload_space` options to their original values so
    34              * they can be relied on in other test classes.
    35              */
    36             update_site_option( 'blog_upload_space', self::$original_site_blog_upload_space );
    37             update_option( 'blog_upload_space', self::$original_blog_upload_space );
    3821
    3922            $wpdb->suppress_errors( $this->suppress );
Note: See TracChangeset for help on using the changeset viewer.