diff --git a/tests/unit-tests/core/functions.php b/tests/unit-tests/core/functions.php index 280c13d6c7d..dbfde11fe4f 100644 --- a/tests/unit-tests/core/functions.php +++ b/tests/unit-tests/core/functions.php @@ -52,4 +52,15 @@ class WC_Tests_WooCommerce_Functions extends WC_Unit_Test_Case { ) ); $this->assertEquals( $new_currency, $order->get_currency() ); } + + /** + * Test the wc_is_active_theme function. + * + * @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' ) ) ); + } }