Make WordPress Core


Ignore:
Timestamp:
03/01/2021 06:42:49 PM (6 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/isUploadSpaceAvailable.php

    r46586 r50463  
    1414                protected $suppress = false;
    1515
    16                 protected static $original_site_blog_upload_space;
    17                 protected static $original_blog_upload_space;
    18 
    19                 public static function setUpBeforeClass() {
    20                         parent::setUpBeforeClass();
    21 
    22                         self::$original_site_blog_upload_space = get_site_option( 'blog_upload_space' );
    23                         self::$original_blog_upload_space      = get_option( 'blog_upload_space' );
    24                 }
    25 
    2616                public function setUp() {
    2717                        global $wpdb;
     
    3424                public function tearDown() {
    3525                        global $wpdb;
    36 
    37                         /**
    38                          * Reset the two `blog_upload_space` options to their original values so
    39                          * they can be relied on in other test classes.
    40                          */
    41                         update_site_option( 'blog_upload_space', self::$original_site_blog_upload_space );
    42                         update_option( 'blog_upload_space', self::$original_blog_upload_space );
    4326
    4427                        $wpdb->suppress_errors( $this->suppress );
Note: See TracChangeset for help on using the changeset viewer.