ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilCertificateMigrationRepositoryTest.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{
9 public function testDeleteFromMigrationJob()
10 {
11 $database = $this->getMockBuilder('ilDBInterface')
12 ->disableOriginalConstructor()
13 ->getMock();
14
15 $database->expects($this->atLeastOnce())->method('manipulate');
16
17 $logger = $this->getMockBuilder('ilLogger')
18 ->disableOriginalConstructor()
19 ->getMock();
20
21 $logger->expects($this->atLeastOnce())->method('log');
22
23 $repository = new ilCertificateMigrationRepository($database, $logger);
24
25 $repository->deleteFromMigrationJob(100);
26 }
27}
An exception for terminatinating execution or to throw for unit testing.