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);
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);
testCertificateIsActive()
testCertificateIsNotActive()