public areAdsForProfessionalServicesEnabled ( ) : boolean | ||
리턴 | boolean |
public function areAdsForProfessionalServicesEnabled()
{
return $this->isAdsEnabledInConfig($this->config->General);
}
public function test_areAdsForProfessionalServicesEnabled_UsingPreviousSettingName() { $this->config->General = array('piwik_pro_ads_enabled' => '1'); $enabled = $this->advertising->areAdsForProfessionalServicesEnabled(); $this->assertTrue($enabled); }