ILIAS
trunk Revision v12.0_alpha-1541-g23eaa5e013d
◀ ilDoc Overview
ilCertificateTemplateDeleteActionTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
class
ilCertificateTemplateDeleteActionTest
extends
ilCertificateBaseTestCase
22
{
23
public
function
testDeleteTemplateAndUseOldThumbnail
(): void
24
{
25
$templateRepositoryMock = $this->getMockBuilder(ilCertificateTemplateRepository::class)
26
->disableOriginalConstructor()
27
->getMock();
28
29
$templateRepositoryMock
30
->expects($this->once())
31
->method(
'deleteTemplate'
)
32
->with(100, 2000);
33
34
$templateRepositoryMock->expects($this->once())->method(
'save'
);
35
36
$objectHelper = $this->getMockBuilder(ilCertificateObjectHelper::class)
37
->getMock();
38
39
$objectHelper->method(
'lookUpType'
)
40
->willReturn(
'crs'
);
41
42
$action =
new
ilCertificateTemplateDeleteAction
(
43
$templateRepositoryMock,
44
'v5.4.0'
,
45
$objectHelper
46
);
47
48
$action->delete(100, 2000);
49
}
50
}
ilCertificateBaseTestCase
Definition:
ilCertificateBaseTestCase.php:25
ilCertificateTemplateDeleteActionTest
Definition:
ilCertificateTemplateDeleteActionTest.php:22
ilCertificateTemplateDeleteActionTest\testDeleteTemplateAndUseOldThumbnail
testDeleteTemplateAndUseOldThumbnail()
Definition:
ilCertificateTemplateDeleteActionTest.php:23
ilCertificateTemplateDeleteAction
Definition:
class.ilCertificateTemplateDeleteAction.php:25
components
ILIAS
Certificate
tests
ilCertificateTemplateDeleteActionTest.php
Generated on Thu Jun 4 2026 23:03:49 for ILIAS by
1.9.4 (using
Doxyfile
)