Changeset 33185 for trunk/tests/phpunit/tests/multisite/getSpaceUsed.php
- Timestamp:
- 07/13/2015 12:13:25 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/multisite/getSpaceUsed.php
r33184 r33185 91 91 restore_current_blog(); 92 92 } 93 94 function test_get_space_used_pre_get_spaced_used_filter() { 95 add_filter( 'pre_get_space_used', array( $this, '_filter_space_used' ) ); 96 97 $this->assertEquals( 300, get_space_used() ); 98 99 remove_filter( 'pre_get_space_used', array( $this, '_filter_space_used' ) ); 100 } 101 102 function _filter_space_used() { 103 return 300; 104 } 93 105 } 94 106 endif;
Note: See TracChangeset
for help on using the changeset viewer.