/** * Tests is_theme_active. * * @covers CustomizeSnapshots\Customize_Snapshot_Manager::is_theme_active() */ public function test_is_theme_active() { global $wp_customize; $wp_customize = null; // WPCS: global override ok. $manager = new Customize_Snapshot_Manager($this->plugin); $this->assertTrue($manager->is_theme_active()); $manager->ensure_customize_manager(); $this->assertTrue($manager->is_theme_active()); }