diff --git a/tests/phpunit/tests/theme.php b/tests/phpunit/tests/theme.php index d7e81db033..62cadb62b0 100644 --- a/tests/phpunit/tests/theme.php +++ b/tests/phpunit/tests/theme.php @@ -158,8 +158,8 @@ class Tests_Theme extends WP_UnitTestCase { $this->assertFileIsReadable( $dir . $file ); } - $this->assertTrue( is_dir( $dir . $theme['Template Dir'] ) ); - $this->assertTrue( is_dir( $dir . $theme['Stylesheet Dir'] ) ); + $this->assertDirectoryExists( $dir . $theme['Template Dir'] ); + $this->assertDirectoryExists( $dir . $theme['Stylesheet Dir'] ); $this->assertSame( 'publish', $theme['Status'] );