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:
John Blackbourn
2016-11-08 23:49:11 +00:00
parent 52a834a6d8
commit 5ab2a22a38
7 changed files with 14 additions and 14 deletions

View File

@@ -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 );