ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ilTestResultsToXMLTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
28
29 protected function setUp(): void
30 {
31 global $DIC;
32 parent::setUp();
33
34 $this->testObj = new ilTestResultsToXML(
35 $this->createMock(ilObjTest::class),
36 $DIC['ilDB'],
37 $DIC['resource_storage'],
38 $DIC['ilUser'],
39 $DIC['lng'],
40 ''
41 );
42 }
43
45 {
46 $this->assertInstanceOf(ilTestResultsToXML::class, $this->testObj);
47 }
48
50 {
51 $this->testObj->setIncludeRandomTestQuestionsEnabled(false);
52 $this->assertFalse($this->testObj->isIncludeRandomTestQuestionsEnabled());
53
54 $this->testObj->setIncludeRandomTestQuestionsEnabled(true);
55 $this->assertTrue($this->testObj->isIncludeRandomTestQuestionsEnabled());
56 }
57}
Class ilTestBaseClass.
Class ilTestResultsToXMLTest.
global $DIC
Definition: shib_login.php:26