◆ testCertificatesAreActiveAndJavaServerIsActive()
ilCertificateActiveValidatorTest::testCertificatesAreActiveAndJavaServerIsActive |
( |
| ) |
|
Definition at line 26 of file ilCertificateActiveValidatorTest.php.
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);
◆ testValidationReturnFalseBecauseGlobalCertificatesAreInactive()
ilCertificateActiveValidatorTest::testValidationReturnFalseBecauseGlobalCertificatesAreInactive |
( |
| ) |
|
Definition at line 50 of file ilCertificateActiveValidatorTest.php.
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);
◆ testValidationReturnFalseBecauseJavaServerIsInactive()
ilCertificateActiveValidatorTest::testValidationReturnFalseBecauseJavaServerIsInactive |
( |
| ) |
|
Definition at line 76 of file ilCertificateActiveValidatorTest.php.
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);
The documentation for this class was generated from the following file: