◆ testCertificateIsActive()
IlCertificateActiveActionTest::testCertificateIsActive |
( |
| ) |
|
Definition at line 9 of file IlCertificateActiveActionTest.php.
References $result.
11 $databaseMock = $this->getMockBuilder(
'ilDBInterface')
14 $databaseMock->expects($this->atLeastOnce())
17 $databaseMock->expects($this->atLeastOnce())
18 ->method(
'fetchAssoc')
19 ->willReturn(array(1, 2, 3));
22 $result = $activateAction->isObjectActive(10);
◆ testCertificateIsNotActive()
IlCertificateActiveActionTest::testCertificateIsNotActive |
( |
| ) |
|
Definition at line 27 of file IlCertificateActiveActionTest.php.
References $result.
29 $databaseMock = $this->getMockBuilder(
'ilDBInterface')
33 $databaseMock->expects($this->atLeastOnce())
36 $databaseMock->expects($this->atLeastOnce())
37 ->method(
'fetchAssoc')
38 ->willReturn(array());
41 $result = $activateAction->isObjectActive(10);
The documentation for this class was generated from the following file: