Changeset 50463 for trunk/tests/phpunit/tests/multisite/getSpaceAllowed.php
- Timestamp:
- 03/01/2021 06:42:49 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/multisite/getSpaceAllowed.php
r48937 r50463 11 11 protected $suppress = false; 12 12 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 23 13 public function setUp() { 24 14 global $wpdb; … … 29 19 public function tearDown() { 30 20 global $wpdb; 31 32 /**33 * Reset the two `blog_upload_space` options to their original values so34 * 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 );38 21 39 22 $wpdb->suppress_errors( $this->suppress );
Note: See TracChangeset
for help on using the changeset viewer.