ILIAS  release_8 Revision v8.23
ilCertificateTestTemplateDeleteActionTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
25 {
26  public function testDelete(): void
27  {
28  $deleteAction = $this->getMockBuilder(ilCertificateDeleteAction::class)
29  ->getMock();
30 
31  $deleteAction
32  ->expects($this->once())
33  ->method('delete');
34 
35  $objectHelper = $this->getMockBuilder(ilCertificateObjectHelper::class)
36  ->getMock();
37 
38  $object = $this->getMockBuilder(ilObjTest::class)
39  ->disableOriginalConstructor()
40  ->getMock();
41 
42  $objectHelper->method('getInstanceByObjId')
43  ->willReturn($object);
44 
46  $deleteAction,
47  $objectHelper
48  );
49 
50  $action->delete(100, 200);
51  }
52 }
Class ilCertificateBaseTestCase.