ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilCertificateScormTemplateDeleteActionTest.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
8 {
10  {
11  $deleteMock = $this->getMockBuilder('ilCertificateTemplateDeleteAction')
12  ->disableOriginalConstructor()
13  ->setMethods(array('delete'))
14  ->getMock();
15 
16  $deleteMock->expects($this->once())
17  ->method('delete');
18 
19  $settingMock = $this->getMockBuilder('ilSetting')
20  ->disableOriginalConstructor()
21  ->getMock();
22 
23  $action = new ilCertificateScormTemplateDeleteAction($deleteMock, $settingMock);
24 
25  $action->delete(10, 200, 'v5.4.0');
26  }
27 }
$action
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.