public function test_control_class_name()
 {
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'text')), 'Kirki_Controls_Text_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'checkbox')), 'Kirki_Controls_Checkbox_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'color')), 'WP_Customize_Color_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'color-alpha')), 'Kirki_Controls_Color_Alpha_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'custom')), 'Kirki_Controls_Custom_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'dimension')), 'Kirki_Controls_Dimension_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'editor')), 'Kirki_Controls_Editor_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'multicheck')), 'Kirki_Controls_MultiCheck_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'number')), 'Kirki_Controls_Number_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'palette')), 'Kirki_Controls_Palette_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'preset')), 'Kirki_Controls_Preset_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'radio')), 'Kirki_Controls_Radio_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'radio-buttonset')), 'Kirki_Controls_Radio_ButtonSet_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'radio-image')), 'Kirki_Controls_Radio_Image_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'repeater')), 'Kirki_Controls_Repeater_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'select')), 'Kirki_Controls_Select_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'slider')), 'Kirki_Controls_Slider_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'sortable')), 'Kirki_Controls_Sortable_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'spacing')), 'Kirki_Controls_Spacing_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'switch')), 'Kirki_Controls_Switch_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'textarea')), 'Kirki_Controls_Textarea_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'toggle')), 'Kirki_Controls_Toggle_Control');
     $this->assertEquals(Kirki_Control::control_class_name(array('type' => 'typography')), 'Kirki_Controls_Typography_Control');
 }
 public function test_control_class_names()
 {
     foreach (Kirki_Control::$control_types as $key => $value) {
         $this->assertEquals($value, Kirki_Control::control_class_name(array('type' => $key)));
     }
     $this->assertEquals($value, Kirki_Control::control_class_name(array('type' => $key)));
     $this->assertEquals('WP_Customize_Control', Kirki_Control::control_class_name(array('type' => 'foo')));
 }