/** * Test enqueue controls scripts. * * @see Customize_Snapshot_Manager::enqueue_controls_scripts() */ function test_enqueue_controls_scripts() { $this->plugin->register_scripts(wp_scripts()); $this->plugin->register_styles(wp_styles()); $manager = new Customize_Snapshot_Manager($this->plugin); $manager->init(); $manager->enqueue_controls_scripts(); $this->assertTrue(wp_script_is('customize-snapshots', 'enqueued')); $this->assertTrue(wp_style_is('customize-snapshots', 'enqueued')); }