ILIAS  release_8 Revision v8.24
ilTestResultsImportParserTest.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 $testObject = $this->createMock(ilObjTest::class);
34 $this->testObj = new ilTestResultsImportParser("", $testObject);
35 }
36
38 {
39 $this->assertInstanceOf(ilTestResultsImportParser::class, $this->testObj);
40 }
41
42 public function testQuestionIdMapping(): void
43 {
44 $expected = [
45 12 => 17,
46 124 => 19
47 ];
48 $this->testObj->setQuestionIdMapping($expected);
49 $this->assertEquals($expected, $this->testObj->getQuestionIdMapping());
50 }
51
52 public function testSrcPoolDefIdMapping(): void
53 {
54 $expected = [
55 12 => 17,
56 124 => 19
57 ];
58 $this->testObj->setSrcPoolDefIdMapping($expected);
59 $this->assertEquals($expected, $this->testObj->getSrcPoolDefIdMapping());
60 }
61}
Class ilTestBaseClass.
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...