◆ testCertificateIsActive()
IlCertificateActiveActionTest::testCertificateIsActive |
( |
| ) |
|
Definition at line 9 of file IlCertificateActiveActionTest.php.
10 {
11 $databaseMock = $this->getMockBuilder('ilDBInterface')
12 ->getMock();
13
14 $databaseMock->expects($this->atLeastOnce())
15 ->method('query');
16
17 $databaseMock->expects($this->atLeastOnce())
18 ->method('fetchAssoc')
19 ->willReturn(array(1, 2, 3));
20
22 $result = $activateAction->isObjectActive(10);
23
25 }
References $result.
◆ testCertificateIsNotActive()
IlCertificateActiveActionTest::testCertificateIsNotActive |
( |
| ) |
|
Definition at line 27 of file IlCertificateActiveActionTest.php.
28 {
29 $databaseMock = $this->getMockBuilder('ilDBInterface')
30 ->getMock();
31
32
33 $databaseMock->expects($this->atLeastOnce())
34 ->method('query');
35
36 $databaseMock->expects($this->atLeastOnce())
37 ->method('fetchAssoc')
38 ->willReturn(array());
39
41 $result = $activateAction->isObjectActive(10);
42
44 }
References $result.
The documentation for this class was generated from the following file: