diff --git a/tests/phpunit/tests/multisite/site.php b/tests/phpunit/tests/multisite/site.php index 28b0ac88ae..130134e19c 100644 --- a/tests/phpunit/tests/multisite/site.php +++ b/tests/phpunit/tests/multisite/site.php @@ -1095,11 +1095,12 @@ class Tests_Multisite_Site extends WP_UnitTestCase { update_site_option( 'blog_upload_space', 250 ); add_filter( 'pre_get_space_used', array( $this, '_filter_space_used' ) ); $available = is_upload_space_available(); + $used = get_space_used(); remove_filter( 'pre_get_space_used', array( $this, '_filter_space_used' ) ); $this->assertEquals( $available, - self::$space_used < 250 + $used < 250 ); } diff --git a/tests/phpunit/tests/xmlrpc/wp/uploadFile.php b/tests/phpunit/tests/xmlrpc/wp/uploadFile.php index 05f4feda2c..a303ffc123 100644 --- a/tests/phpunit/tests/xmlrpc/wp/uploadFile.php +++ b/tests/phpunit/tests/xmlrpc/wp/uploadFile.php @@ -41,7 +41,7 @@ class Tests_XMLRPC_wp_uploadFile extends WP_XMLRPC_UnitTestCase { function test_network_limit() { $this->make_user_by_role( 'editor' ); - update_option( 'blog_upload_space', 0.1 ); + update_option( 'blog_upload_space', 0 ); // create attachment $filename = ( DIR_TESTDATA . '/images/canola.jpg' );