11 $settings = $this->getMockBuilder(
'ilSetting')
12 ->disableOriginalConstructor()
15 $settings->method(
'get')
19 $rpcSettings = $this->getMockBuilder(
'ilRPCServerSettings')
20 ->disableOriginalConstructor()
23 $rpcSettings->method(
'isEnabled')
28 $result = $validator->validate();
35 $settings = $this->getMockBuilder(
'ilSetting')
36 ->disableOriginalConstructor()
39 $settings->method(
'get')
43 $rpcSettings = $this->getMockBuilder(
'ilRPCServerSettings')
44 ->disableOriginalConstructor()
48 ->expects($this->never())
54 $result = $validator->validate();
61 $settings = $this->getMockBuilder(
'ilSetting')
62 ->disableOriginalConstructor()
65 $settings->method(
'get')
69 $rpcSettings = $this->getMockBuilder(
'ilRPCServerSettings')
70 ->disableOriginalConstructor()
74 ->expects($this->
once())
80 $result = $validator->validate();
testValidationReturnFalseBecauseGlobalCertificatesAreInactive()
testCertificatesAreActiveAndJavaServerIsActive()
testValidationReturnFalseBecauseJavaServerIsInactive()
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.