mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Build/Test Tools: Utilise assertFileExists() and assertFileNotExists() in more places.
See #38716 git-svn-id: https://develop.svn.wordpress.org/trunk@39173 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -210,7 +210,7 @@ class Tests_Theme extends WP_UnitTestCase {
|
||||
$wp_theme = wp_get_theme( $this->theme_slug );
|
||||
$this->assertNotEmpty( $wp_theme->get('License') );
|
||||
$path_to_style_css = $wp_theme->get_theme_root() . '/' . $wp_theme->get_stylesheet() . '/style.css';
|
||||
$this->assertTrue( file_exists( $path_to_style_css ) );
|
||||
$this->assertFileExists( $path_to_style_css );
|
||||
$theme_data = get_theme_data( $path_to_style_css );
|
||||
$this->assertArrayHasKey( 'License', $theme_data );
|
||||
$this->assertArrayNotHasKey( 'Not a Valid Key', $theme_data );
|
||||
|
||||
Reference in New Issue
Block a user