Changeset 48937 for trunk/tests/phpunit/tests/admin/includesFile.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesFile.php
r46586 r48937 14 14 $siteurl = get_option( 'siteurl' ); 15 15 $sfn = $_SERVER['SCRIPT_FILENAME']; 16 $this->assert Equals( str_replace( '\\', '/', ABSPATH ), get_home_path() );16 $this->assertSame( str_replace( '\\', '/', ABSPATH ), get_home_path() ); 17 17 18 18 update_option( 'home', 'http://localhost' ); … … 20 20 21 21 $_SERVER['SCRIPT_FILENAME'] = 'D:\root\vhosts\site\httpdocs\wp\wp-admin\options-permalink.php'; 22 $this->assert Equals( 'D:/root/vhosts/site/httpdocs/', get_home_path() );22 $this->assertSame( 'D:/root/vhosts/site/httpdocs/', get_home_path() ); 23 23 24 24 $_SERVER['SCRIPT_FILENAME'] = '/Users/foo/public_html/trunk/wp/wp-admin/options-permalink.php'; 25 $this->assert Equals( '/Users/foo/public_html/trunk/', get_home_path() );25 $this->assertSame( '/Users/foo/public_html/trunk/', get_home_path() ); 26 26 27 27 $_SERVER['SCRIPT_FILENAME'] = 'S:/home/wordpress/trunk/wp/wp-admin/options-permalink.php'; 28 $this->assert Equals( 'S:/home/wordpress/trunk/', get_home_path() );28 $this->assertSame( 'S:/home/wordpress/trunk/', get_home_path() ); 29 29 30 30 update_option( 'home', $home ); … … 41 41 $error = download_url( 'test_download_url_non_200' ); 42 42 $this->assertWPError( $error ); 43 $this->assert Equals(43 $this->assertSame( 44 44 array( 45 45 'code' => 418, … … 53 53 $error = download_url( 'test_download_url_non_200' ); 54 54 $this->assertWPError( $error ); 55 $this->assert Equals(55 $this->assertSame( 56 56 array( 57 57 'code' => 418,
Note: See TracChangeset
for help on using the changeset viewer.