◆ testCertificatesAreActiveAndJavaServerIsActive()
ilCertificateActiveValidatorTest::testCertificatesAreActiveAndJavaServerIsActive |
( |
| ) |
|
Definition at line 23 of file ilCertificateActiveValidatorTest.php.
25 $settings = $this->getMockBuilder(ilSetting::class)
26 ->disableOriginalConstructor()
29 $settings->method(
'get')
33 $rpcSettings = $this->getMockBuilder(ilRPCServerSettings::class)
34 ->disableOriginalConstructor()
37 $rpcSettings->method(
'isEnabled')
42 $result = $validator->validate();
44 $this->assertTrue($result);
◆ testValidationReturnFalseBecauseGlobalCertificatesAreInactive()
ilCertificateActiveValidatorTest::testValidationReturnFalseBecauseGlobalCertificatesAreInactive |
( |
| ) |
|
Definition at line 47 of file ilCertificateActiveValidatorTest.php.
49 $settings = $this->getMockBuilder(ilSetting::class)
50 ->disableOriginalConstructor()
53 $settings->method(
'get')
57 $rpcSettings = $this->getMockBuilder(ilRPCServerSettings::class)
58 ->disableOriginalConstructor()
62 ->expects($this->never())
68 $result = $validator->validate();
70 $this->assertFalse($result);
◆ testValidationReturnFalseBecauseJavaServerIsInactive()
ilCertificateActiveValidatorTest::testValidationReturnFalseBecauseJavaServerIsInactive |
( |
| ) |
|
Definition at line 73 of file ilCertificateActiveValidatorTest.php.
75 $settings = $this->getMockBuilder(ilSetting::class)
76 ->disableOriginalConstructor()
79 $settings->method(
'get')
83 $rpcSettings = $this->getMockBuilder(ilRPCServerSettings::class)
84 ->disableOriginalConstructor()
88 ->expects($this->once())
94 $result = $validator->validate();
96 $this->assertFalse($result);
The documentation for this class was generated from the following file: