From 7cd7d4622c72f5a004239534703a4e013091ba41 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 26 Sep 2015 19:28:34 +0000 Subject: [PATCH] After [34601], some more cleanup. git-svn-id: https://develop.svn.wordpress.org/trunk@34602 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/multisite/site.php | 3 ++- tests/phpunit/tests/xmlrpc/wp/uploadFile.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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' );