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:
parent
4470cbf7e3
commit
7cd7d4622c
@ -1095,11 +1095,12 @@ class Tests_Multisite_Site extends WP_UnitTestCase {
|
|||||||
update_site_option( 'blog_upload_space', 250 );
|
update_site_option( 'blog_upload_space', 250 );
|
||||||
add_filter( 'pre_get_space_used', array( $this, '_filter_space_used' ) );
|
add_filter( 'pre_get_space_used', array( $this, '_filter_space_used' ) );
|
||||||
$available = is_upload_space_available();
|
$available = is_upload_space_available();
|
||||||
|
$used = get_space_used();
|
||||||
remove_filter( 'pre_get_space_used', array( $this, '_filter_space_used' ) );
|
remove_filter( 'pre_get_space_used', array( $this, '_filter_space_used' ) );
|
||||||
|
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
$available,
|
$available,
|
||||||
self::$space_used < 250
|
$used < 250
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ class Tests_XMLRPC_wp_uploadFile extends WP_XMLRPC_UnitTestCase {
|
|||||||
function test_network_limit() {
|
function test_network_limit() {
|
||||||
$this->make_user_by_role( 'editor' );
|
$this->make_user_by_role( 'editor' );
|
||||||
|
|
||||||
update_option( 'blog_upload_space', 0.1 );
|
update_option( 'blog_upload_space', 0 );
|
||||||
|
|
||||||
// create attachment
|
// create attachment
|
||||||
$filename = ( DIR_TESTDATA . '/images/canola.jpg' );
|
$filename = ( DIR_TESTDATA . '/images/canola.jpg' );
|
||||||
|
Loading…
Reference in New Issue
Block a user