19 declare(strict_types=1);
28 $settings = $this->getMockBuilder(ilSetting::class)
29 ->disableOriginalConstructor()
32 $settings->method(
'get')
36 $rpcSettings = $this->getMockBuilder(ilRPCServerSettings::class)
37 ->disableOriginalConstructor()
40 $rpcSettings->method(
'isEnabled')
45 $result = $validator->validate();
47 $this->assertTrue($result);
52 $settings = $this->getMockBuilder(ilSetting::class)
53 ->disableOriginalConstructor()
56 $settings->method(
'get')
60 $rpcSettings = $this->getMockBuilder(ilRPCServerSettings::class)
61 ->disableOriginalConstructor()
65 ->expects($this->never())
71 $result = $validator->validate();
73 $this->assertFalse($result);
78 $settings = $this->getMockBuilder(ilSetting::class)
79 ->disableOriginalConstructor()
82 $settings->method(
'get')
86 $rpcSettings = $this->getMockBuilder(ilRPCServerSettings::class)
87 ->disableOriginalConstructor()
91 ->expects($this->once())
97 $result = $validator->validate();
99 $this->assertFalse($result);
testValidationReturnFalseBecauseGlobalCertificatesAreInactive()
testCertificatesAreActiveAndJavaServerIsActive()
testValidationReturnFalseBecauseJavaServerIsInactive()