Merge pull request #18187 from woocommerce/fix/18182-storefront-wizard-notice

Fix wc_is_active_theme test
This commit is contained in:
Mike Jolley 2017-12-15 13:44:40 +00:00 committed by GitHub
commit d90b817598
1 changed files with 4 additions and 3 deletions

View File

@ -59,8 +59,9 @@ class WC_Tests_WooCommerce_Functions extends WC_Unit_Test_Case {
* @return void
*/
public function test_wc_is_active_theme() {
$this->assertTrue( wc_is_active_theme( 'default' ) );
$this->assertFalse( wc_is_active_theme( 'twentyfifteen' ) );
$this->assertTrue( wc_is_active_theme( array( 'default', 'twentyseventeen' ) ) );
$current_theme = get_template();
$this->assertTrue( wc_is_active_theme( $current_theme ) );
$this->assertFalse( wc_is_active_theme( 'somegiberish' ) );
$this->assertTrue( wc_is_active_theme( array( $current_theme, 'somegiberish' ) ) );
}
}