ILIAS  release_7 Revision v7.30-3-g800a261c036
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 ->onlyMethods(['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}
An exception for terminatinating execution or to throw for unit testing.
Class ilCertificateBaseTestCase.