Changeset 52010 for trunk/tests/phpunit/tests/filesystem/base.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/filesystem/base.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/filesystem/base.php
r51568 r52010 5 5 */ 6 6 abstract class WP_Filesystem_UnitTestCase extends WP_UnitTestCase { 7 function set_up() {7 public function set_up() { 8 8 parent::set_up(); 9 9 add_filter( 'filesystem_method_file', array( $this, 'filter_abstraction_file' ) ); … … 12 12 } 13 13 14 function tear_down() {14 public function tear_down() { 15 15 global $wp_filesystem; 16 16 remove_filter( 'filesystem_method_file', array( $this, 'filter_abstraction_file' ) ); … … 21 21 } 22 22 23 function filter_fs_method( $method ) {23 public function filter_fs_method( $method ) { 24 24 return 'MockFS'; 25 25 } 26 function filter_abstraction_file( $file ) {26 public function filter_abstraction_file( $file ) { 27 27 return dirname( dirname( __DIR__ ) ) . '/includes/mock-fs.php'; 28 28 } 29 29 30 function test_is_MockFS_sane() {30 public function test_is_MockFS_sane() { 31 31 global $wp_filesystem; 32 32 $this->assertInstanceOf( 'WP_Filesystem_MockFS', $wp_filesystem );
Note: See TracChangeset
for help on using the changeset viewer.