Changeset 52010 for trunk/tests/phpunit/tests/multisite/getSpaceUsed.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/multisite/getSpaceUsed.php
r51869 r52010 9 9 class Tests_Multisite_GetSpaceUsed extends WP_UnitTestCase { 10 10 11 function test_get_space_used_switched_site() {11 public function test_get_space_used_switched_site() { 12 12 $blog_id = self::factory()->blog->create(); 13 13 switch_to_blog( $blog_id ); … … 43 43 * the main site. 44 44 */ 45 function test_get_space_used_main_site() {45 public function test_get_space_used_main_site() { 46 46 $space_used = get_space_used(); 47 47 … … 77 77 } 78 78 79 function test_get_space_used_pre_get_spaced_used_filter() {80 add_filter( 'pre_get_space_used', array( $this, ' _filter_space_used' ) );79 public function test_get_space_used_pre_get_spaced_used_filter() { 80 add_filter( 'pre_get_space_used', array( $this, 'filter_space_used' ) ); 81 81 82 82 $this->assertSame( 300, get_space_used() ); 83 83 84 remove_filter( 'pre_get_space_used', array( $this, ' _filter_space_used' ) );84 remove_filter( 'pre_get_space_used', array( $this, 'filter_space_used' ) ); 85 85 } 86 86 87 function _filter_space_used() {87 public function filter_space_used() { 88 88 return 300; 89 89 }
Note: See TracChangeset
for help on using the changeset viewer.