ILIAS  release_8 Revision v8.24
ilTestPassFinishTasksTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
26{
28
29 protected function setUp(): void
30 {
31 parent::setUp();
32
33 $return_statement = $this->getMockBuilder(ilDBStatement::class)->getMock();
34
35 $db_mock = $this->createMock(ilDBInterface::class);
36 $db_mock->expects($this->any())
37 ->method("queryF")
38 ->willReturn($return_statement);
39
40 $this->setGlobalVariable("ilDB", $db_mock);
41
42 $this->testObj = new ilTestPassFinishTasks(0, 0);
43 }
44
46 {
47 $this->assertInstanceOf(ilTestPassFinishTasks::class, $this->testObj);
48 }
49}
Class ilTestBaseClass.
setGlobalVariable(string $name, $value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...