Changeset 42816 for trunk/tests/phpunit/tests/theme/themeDir.php
- Timestamp:
- 03/09/2018 04:59:57 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/themeDir.php
r42788 r42816 294 294 rmdir( WP_CONTENT_DIR . '/themes/foo-themes' ); 295 295 } 296 297 /**298 * @ticket 43228299 */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 }316 296 }
Note: See TracChangeset
for help on using the changeset viewer.