ILIAS  release_8 Revision v8.25
ilTestResultsImportParserTest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilTestResultsImportParserTest:
+ Collaboration diagram for ilTestResultsImportParserTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testQuestionIdMapping ()
 
 testSrcPoolDefIdMapping ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 
 setGlobalVariable (string $name, $value)
 
 getGlobalTemplateMock ()
 
 getDatabaseMock ()
 
 getIliasMock ()
 
 addGlobal_ilAccess ()
 
 addGlobal_ilUser ()
 
 addGlobal_objDefinition ()
 
 addGlobal_tree ()
 
 addGlobal_ilSetting ()
 
 addGlobal_rbacsystem ()
 
 addGlobal_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilComponentRepository ()
 
 addGlobal_ilTabs ()
 
 addGlobal_ilObjDataCache ()
 
 addGlobal_ilLocator ()
 
 addGlobal_rbacreview ()
 
 addGlobal_ilToolbar ()
 
 addGlobal_http ()
 
 addGlobal_ilIliasIniFile ()
 
 addGlobal_ilLoggerFactory ()
 
 addGlobal_ilHelp ()
 
 addGlobal_ui ()
 
 addGlobal_uiFactory ()
 
 addGlobal_uiRenderer ()
 
 addGlobal_refinery ()
 

Private Attributes

ilTestResultsImportParser $testObj
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilTestResultsImportParserTest

Author
Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de

Definition at line 25 of file ilTestResultsImportParserTest.php.

Member Function Documentation

◆ setUp()

ilTestResultsImportParserTest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 29 of file ilTestResultsImportParserTest.php.

29 : void
30 {
31 parent::setUp();
32
33 $testObject = $this->createMock(ilObjTest::class);
34 $this->testObj = new ilTestResultsImportParser("", $testObject);
35 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ test_instantiateObject_shouldReturnInstance()

ilTestResultsImportParserTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 37 of file ilTestResultsImportParserTest.php.

37 : void
38 {
39 $this->assertInstanceOf(ilTestResultsImportParser::class, $this->testObj);
40 }

◆ testQuestionIdMapping()

ilTestResultsImportParserTest::testQuestionIdMapping ( )

Definition at line 42 of file ilTestResultsImportParserTest.php.

42 : void
43 {
44 $expected = [
45 12 => 17,
46 124 => 19
47 ];
48 $this->testObj->setQuestionIdMapping($expected);
49 $this->assertEquals($expected, $this->testObj->getQuestionIdMapping());
50 }

◆ testSrcPoolDefIdMapping()

ilTestResultsImportParserTest::testSrcPoolDefIdMapping ( )

Definition at line 52 of file ilTestResultsImportParserTest.php.

52 : void
53 {
54 $expected = [
55 12 => 17,
56 124 => 19
57 ];
58 $this->testObj->setSrcPoolDefIdMapping($expected);
59 $this->assertEquals($expected, $this->testObj->getSrcPoolDefIdMapping());
60 }

Field Documentation

◆ $testObj

ilTestResultsImportParser ilTestResultsImportParserTest::$testObj
private

Definition at line 27 of file ilTestResultsImportParserTest.php.


The documentation for this class was generated from the following file: