ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilCertificateScormTemplateDeleteActionTest Class Reference
+ Inheritance diagram for ilCertificateScormTemplateDeleteActionTest:
+ Collaboration diagram for ilCertificateScormTemplateDeleteActionTest:

Public Member Functions

 testDeleteScormTemplateAndSettings ()
 

Detailed Description

Member Function Documentation

◆ testDeleteScormTemplateAndSettings()

ilCertificateScormTemplateDeleteActionTest::testDeleteScormTemplateAndSettings ( )

Definition at line 9 of file ilCertificateScormTemplateDeleteActionTest.php.

References $action, and Sabre\Event\once().

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  }
$action
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: