Changeset 42343 for trunk/tests/phpunit/tests/filesystem/findFolder.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/filesystem/findFolder.php
r41289 r42343 12 12 global $wp_filesystem; 13 13 $fs = $wp_filesystem; 14 $fs->init(' 14 $fs->init( 15 ' 15 16 /var/www/wordpress/ 16 17 /var/www/wordpress/wp-includes/ 17 18 /var/www/wordpress/index.php 18 '); 19 ' 20 ); 19 21 20 22 $path = $fs->find_folder( '/var/www/wordpress/' ); … … 29 31 global $wp_filesystem; 30 32 $fs = $wp_filesystem; 31 $fs->init(' 33 $fs->init( 34 ' 32 35 /www/example.com/wordpress/ 33 36 /www/example.com/wordpress/wp-includes/ … … 38 41 /www/wp.example.com/wordpress/index.php 39 42 /www/index.php 40 '); 43 ' 44 ); 41 45 42 46 $path = $fs->find_folder( '/var/www/example.com/wordpress/' ); 43 47 $this->assertEquals( '/www/example.com/wordpress/', $path ); 44 48 45 49 $path = $fs->find_folder( '/var/www/wp.example.com/wordpress/wp-content/' ); 46 50 $this->assertEquals( '/www/wp.example.com/wordpress/wp-content/', $path ); … … 57 61 global $wp_filesystem; 58 62 $fs = $wp_filesystem; 59 $fs->init(' 63 $fs->init( 64 ' 60 65 /wp.example.com/index.php 61 66 /wp.example.com/wordpress/ … … 64 69 /wp-includes/ 65 70 /index.php 66 '); 71 ' 72 ); 67 73 68 74 $path = $fs->abspath( '/var/www/example.com/wp.example.com/wordpress/' ); 69 75 $this->assertEquals( '/wp.example.com/wordpress/', $path ); 70 76 71 77 $path = $fs->abspath( '/var/www/example.com/' ); 72 78 $this->assertEquals( '/', $path ); … … 82 88 global $wp_filesystem; 83 89 $fs = $wp_filesystem; 84 $fs->init(' 90 $fs->init( 91 ' 85 92 # www.example.com 86 93 /example.com/www/index.php … … 92 99 /example.com/sub/wp-includes/ 93 100 /example.com/sub/wp-content/plugins/ 94 '); 101 ' 102 ); 95 103 96 104 // www.example.com
Note: See TracChangeset
for help on using the changeset viewer.