/**
  * @dataProvider zoneMinifyValidValuesProvider
  */
 public function testSetterValidValues($testResult)
 {
     $zone_setting = new ZoneSettingMinify($testResult['css'], $testResult['html'], $testResult['js'], $testResult['id'], $testResult['editable'], $testResult['modified_on']);
     $zone_setting->setValue($testResult['css'], $testResult['html'], $testResult['js']);
     $parsed_css = $zone_setting->isCssMinifyEnabled() ? 'on' : 'off';
     $parsed_js = $zone_setting->isJsMinifyEnabled() ? 'on' : 'off';
     $parsed_html = $zone_setting->isHtmlMinifyEnabled() ? 'on' : 'off';
     $this->assertEquals($parsed_css, $testResult['css']);
     $this->assertEquals($parsed_js, $testResult['js']);
     $this->assertEquals($parsed_html, $testResult['html']);
 }
 /**
  * Builds FormApi radio button for the value of a ZoneSettingMinify.
  *
  * @param \CloudFlarePhpSdk\ApiTypes\Zone\ZoneSettingMinify $setting
  *   The settings to render.
  *
  * @return array
  *   FormApi render array containing radio button sets for js/css/html minify
  *   settings.
  */
 private function renderZoneSettingMinify(ZoneSettingMinify $setting)
 {
     $js_checkbox = ['#type' => 'checkbox', '#title' => 'JS', '#default_value' => $setting->isJsMinifyEnabled() ? '1' : '0', '#disabled' => !$setting->isEditable()];
     $css_checkbox = ['#type' => 'checkbox', '#title' => 'CSS', '#default_value' => $setting->isCssMinifyEnabled() ? '1' : '0', '#disabled' => !$setting->isEditable()];
     $html_checkbox = ['#type' => 'checkbox', '#title' => 'HTML', '#default_value' => $setting->isHtmlMinifyEnabled() ? '1' : '0', '#disabled' => !$setting->isEditable()];
     return [ZoneSettings::SETTING_MINIFY_CSS => $css_checkbox, ZoneSettings::SETTING_MINIFY_JS => $js_checkbox, ZoneSettings::SETTING_MINIFY_HTML => $html_checkbox];
 }