wp_customize = $GLOBALS['wp_customize']; } public function test_config() { Kirki::add_config( 'test_empty', array() ); Kirki::add_config( 'test', array( 'capability' => 'manage_network_options', 'option_type' => 'option', 'option_name' => 'my_option_name', 'compiler' => array(), 'disable_output' => true, 'postMessage' => 'auto', ) ); $this->assertEquals( array( 'capability' => 'edit_theme_options', 'option_type' => 'theme_mod', 'option_name' => '', 'compiler' => array(), 'disable_output' => false, 'postMessage' => '', ), Kirki::$config['global'] ); $this->assertEquals( array( 'capability' => 'edit_theme_options', 'option_type' => 'theme_mod', 'option_name' => '', 'compiler' => array(), 'disable_output' => false, 'postMessage' => '', ), Kirki::$config['test_empty'] ); $this->assertEquals( array( 'capability' => 'manage_network_options', 'option_type' => 'option', 'option_name' => 'my_option_name', 'compiler' => array(), 'disable_output' => true, 'postMessage' => 'auto', ), Kirki::$config['test'] ); $this->assertEquals( 3, count( Kirki::$config ) ); } }