◆ testDelete()
ilCertificateTestTemplateDeleteActionTest::testDelete |
( |
| ) |
|
Definition at line 9 of file ilCertificateTestTemplateDeleteActionTest.php.
References $action, and Sabre\Event\once().
11 $deleteAction = $this->getMockBuilder(
'ilCertificateDeleteAction')
15 ->expects($this->
once())
18 $objectHelper = $this->getMockBuilder(
'ilCertificateObjectHelper')
21 $object = $this->getMockBuilder(
'ilObjTest')
22 ->disableOriginalConstructor()
26 ->expects($this->never())
27 ->method(
'saveCertificateVisibility');
29 $objectHelper->method(
'getInstanceByObjId')
30 ->willReturn($object);
37 $action->delete(100, 200,
'v5.4.0');
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.
The documentation for this class was generated from the following file: