Changeset 59061
- Timestamp:
- 09/18/2024 09:04:48 PM (17 months ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 4 edited
-
admin/includesFile.php (modified) (1 diff)
-
block-template.php (modified) (2 diffs)
-
filesystem/wpFilesystemDirect/chdir.php (modified) (1 diff)
-
theme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesFile.php
r58208 r59061 16 16 $siteurl = get_option( 'siteurl' ); 17 17 $sfn = $_SERVER['SCRIPT_FILENAME']; 18 $this->assertSame ( str_replace( '\\', '/', ABSPATH ), get_home_path() );18 $this->assertSamePathIgnoringDirectorySeparators( ABSPATH, get_home_path() ); 19 19 20 20 update_option( 'home', 'http://localhost' ); -
trunk/tests/phpunit/tests/block-template.php
r58323 r59061 396 396 */ 397 397 public function test_get_block_templates_paths_dir_exists() { 398 $theme_dir = get_template_directory();398 $theme_dir = $this->normalizeDirectorySeparatorsInPath( get_template_directory() ); 399 399 // Templates in the current theme. 400 400 $templates = array( … … 416 416 417 417 $template_paths = _get_block_templates_paths( $theme_dir ); 418 $template_paths = array_map( array( $this, 'normalizeDirectorySeparatorsInPath' ), _get_block_templates_paths( $theme_dir ) ); 419 418 420 $this->assertSameSets( $expected_template_paths, $template_paths ); 419 421 } -
trunk/tests/phpunit/tests/filesystem/wpFilesystemDirect/chdir.php
r57753 r59061 87 87 ); 88 88 89 $this->assertSame (89 $this->assertSamePathIgnoringDirectorySeparators( 90 90 $path, 91 91 $cwd_result, -
trunk/tests/phpunit/tests/theme.php
r59054 r59061 926 926 public function test_get_stylesheet_directory() { 927 927 switch_theme( 'block-theme-child' ); 928 $this->assertSame ( realpath( DIR_TESTDATA ) . '/themedir1/block-theme-child', get_stylesheet_directory() );928 $this->assertSamePathIgnoringDirectorySeparators( realpath( DIR_TESTDATA ) . '/themedir1/block-theme-child', get_stylesheet_directory() ); 929 929 } 930 930 … … 938 938 public function test_get_template_directory() { 939 939 switch_theme( 'block-theme-child' ); 940 $this->assertSame ( realpath( DIR_TESTDATA ) . '/themedir1/block-theme', get_template_directory() );940 $this->assertSamePathIgnoringDirectorySeparators( realpath( DIR_TESTDATA ) . '/themedir1/block-theme', get_template_directory() ); 941 941 } 942 942
Note: See TracChangeset
for help on using the changeset viewer.