Changeset 59061 for trunk/tests/phpunit/tests/theme.php
- Timestamp:
- 09/18/2024 09:04:48 PM (14 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/theme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.