ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilTestResultsToXMLTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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  0,
36  $DIC['ilDB'],
37  $DIC['resource_storage'],
38  '',
39  false
40  );
41  }
42 
44  {
45  $this->assertInstanceOf(ilTestResultsToXML::class, $this->testObj);
46  }
47 
48  public function testIncludeRandomTestQuestionsEnabled(): void
49  {
50  $this->testObj->setIncludeRandomTestQuestionsEnabled(false);
51  $this->assertFalse($this->testObj->isIncludeRandomTestQuestionsEnabled());
52 
53  $this->testObj->setIncludeRandomTestQuestionsEnabled(true);
54  $this->assertTrue($this->testObj->isIncludeRandomTestQuestionsEnabled());
55  }
56 }
global $DIC
Definition: shib_login.php:26
Class ilTestResultsToXMLTest.