Changeset 42788 for trunk/tests/phpunit/tests/theme/themeDir.php
- Timestamp:
- 03/05/2018 10:13:36 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/theme/themeDir.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/themeDir.php
r42343 r42788 294 294 rmdir( WP_CONTENT_DIR . '/themes/foo-themes' ); 295 295 } 296 297 /** 298 * @ticket 43228 299 */ 300 function test_theme_dir_caches() { 301 @mkdir( WP_CONTENT_DIR . '/themes/foo' ); 302 @mkdir( WP_CONTENT_DIR . '/themes/foo/bar' ); 303 304 $old_roots = get_theme_roots(); 305 306 register_theme_directory( WP_CONTENT_DIR . '/themes/foo' ); 307 308 $new_roots = get_theme_roots(); 309 310 rmdir( WP_CONTENT_DIR . '/themes/foo/bar' ); 311 rmdir( WP_CONTENT_DIR . '/themes/foo' ); 312 313 $this->assertNotEquals( $new_roots, $old_roots ); 314 $this->assertArrayHasKey( 'foo', $new_roots ); 315 } 296 316 }
Note: See TracChangeset
for help on using the changeset viewer.