/** * Whether code signing is enforced or not. * * @return bool */ public function isCodeCheckEnforced() { $signedChannels = ['daily', 'testing', 'stable']; if (!in_array($this->environmentHelper->getChannel(), $signedChannels, true)) { return false; } /** * This config option is undocumented and supposed to be so, it's only * applicable for very specific scenarios and we should not advertise it * too prominent. So please do not add it to config.sample.php. */ $isIntegrityCheckDisabled = $this->config->getSystemValue('integrity.check.disabled', false); if ($isIntegrityCheckDisabled === true) { return false; } return true; }
/** * Whether code signing is enforced or not. * * @return bool */ public function isCodeCheckEnforced() { // FIXME: Once the signing server is instructed to sign daily, beta and // RCs as well these need to be included also. $signedChannels = ['stable']; if (!in_array($this->environmentHelper->getChannel(), $signedChannels, true)) { return false; } /** * This config option is undocumented and supposed to be so, it's only * applicable for very specific scenarios and we should not advertise it * too prominent. So please do not add it to config.sample.php. */ $isIntegrityCheckDisabled = $this->config->getSystemValue('integrity.check.disabled', false); if ($isIntegrityCheckDisabled === true) { return false; } return true; }
public function testGetChannel() { $this->assertSame(\OC_Util::getChannel(), $this->environmentHelper->getChannel()); }