Changeset 27710 for trunk/tests/phpunit/tests/theme/WPTheme.php
- Timestamp:
- 03/25/2014 01:06:21 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/theme/WPTheme.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/WPTheme.php
r25254 r27710 111 111 } 112 112 113 /** 114 * @ticket 21969 115 */ 116 function test_theme_uris_with_spaces() { 117 $callback = array( $this, 'filter_theme_with_spaces' ); 118 add_filter( 'stylesheet', $callback ); 119 add_filter( 'template', $callback ); 120 121 $this->assertEquals( get_theme_root_uri() . '/subdir/theme%20with%20spaces', get_stylesheet_directory_uri() ); 122 $this->assertEquals( get_theme_root_uri() . '/subdir/theme%20with%20spaces', get_template_directory_uri() ); 123 124 remove_filter( 'stylesheet', $callback ); 125 add_filter( 'template', $callback ); 126 } 127 128 function filter_theme_with_spaces() { 129 return 'subdir/theme with spaces'; 130 } 113 131 }
Note: See TracChangeset
for help on using the changeset viewer.