After [34601], some more cleanup.

git-svn-id: https://develop.svn.wordpress.org/trunk@34602 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-09-26 19:28:34 +00:00
parent 4470cbf7e3
commit 7cd7d4622c
2 changed files with 3 additions and 2 deletions

View File

@ -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
);
}

View File

@ -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' );