/** * Test customize preview init. * * @see Customize_Snapshot_Manager::customize_preview_init() */ function test_customize_preview_init() { $manager = new Customize_Snapshot_Manager($this->plugin); $this->assertFalse(has_action('wp_enqueue_scripts', array($manager, 'enqueue_preview_scripts'))); $manager->customize_preview_init(); $this->assertEquals(10, has_action('wp_enqueue_scripts', array($manager, 'enqueue_preview_scripts'))); }