ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestSkillLevelThresholdImporterTest 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 ilTestSkillLevelThresholdImporterTest:
+ Collaboration diagram for ilTestSkillLevelThresholdImporterTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testTargetTestId ()
 
 testImportInstallationId ()
 
 testImportMappingRegistry ()
 
 testImportedQuestionSkillAssignmentList ()
 
 testImportThresholdList ()
 
 testFailedThresholdImportSkillList ()
 

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

ilTestSkillLevelThresholdImporter $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 ilTestSkillLevelThresholdImporterTest

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

Definition at line 25 of file ilTestSkillLevelThresholdImporterTest.php.

Member Function Documentation

◆ setUp()

ilTestSkillLevelThresholdImporterTest::setUp ( )
protected

Definition at line 29 of file ilTestSkillLevelThresholdImporterTest.php.

29  : void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilTestSkillLevelThresholdImporter();
34  }

◆ test_instantiateObject_shouldReturnInstance()

ilTestSkillLevelThresholdImporterTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 36 of file ilTestSkillLevelThresholdImporterTest.php.

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

◆ testFailedThresholdImportSkillList()

ilTestSkillLevelThresholdImporterTest::testFailedThresholdImportSkillList ( )

Definition at line 74 of file ilTestSkillLevelThresholdImporterTest.php.

74  : void
75  {
76  $mock = $this->createMock(ilAssQuestionAssignedSkillList::class);
77  $this->testObj->setFailedThresholdImportSkillList($mock);
78  $this->assertEquals($mock, $this->testObj->getFailedThresholdImportSkillList());
79  }

◆ testImportedQuestionSkillAssignmentList()

ilTestSkillLevelThresholdImporterTest::testImportedQuestionSkillAssignmentList ( )

Definition at line 60 of file ilTestSkillLevelThresholdImporterTest.php.

60  : void
61  {
62  $mock = $this->createMock(ilAssQuestionSkillAssignmentList::class);
63  $this->testObj->setImportedQuestionSkillAssignmentList($mock);
64  $this->assertEquals($mock, $this->testObj->getImportedQuestionSkillAssignmentList());
65  }

◆ testImportInstallationId()

ilTestSkillLevelThresholdImporterTest::testImportInstallationId ( )

Definition at line 47 of file ilTestSkillLevelThresholdImporterTest.php.

47  : void
48  {
49  $this->testObj->setImportInstallationId(12);
50  $this->assertEquals(12, $this->testObj->getImportInstallationId());
51  }

◆ testImportMappingRegistry()

ilTestSkillLevelThresholdImporterTest::testImportMappingRegistry ( )

Definition at line 53 of file ilTestSkillLevelThresholdImporterTest.php.

53  : void
54  {
55  $mock = $this->createMock(ilImportMapping::class);
56  $this->testObj->setImportMappingRegistry($mock);
57  $this->assertEquals($mock, $this->testObj->getImportMappingRegistry());
58  }

◆ testImportThresholdList()

ilTestSkillLevelThresholdImporterTest::testImportThresholdList ( )

Definition at line 67 of file ilTestSkillLevelThresholdImporterTest.php.

67  : void
68  {
69  $mock = $this->createMock(ilTestSkillLevelThresholdImportList::class);
70  $this->testObj->setImportThresholdList($mock);
71  $this->assertEquals($mock, $this->testObj->getImportThresholdList());
72  }

◆ testTargetTestId()

ilTestSkillLevelThresholdImporterTest::testTargetTestId ( )

Definition at line 41 of file ilTestSkillLevelThresholdImporterTest.php.

41  : void
42  {
43  $this->testObj->setTargetTestId(12);
44  $this->assertEquals(12, $this->testObj->getTargetTestId());
45  }

Field Documentation

◆ $testObj

ilTestSkillLevelThresholdImporter ilTestSkillLevelThresholdImporterTest::$testObj
private

Definition at line 27 of file ilTestSkillLevelThresholdImporterTest.php.


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