ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestSkillLevelThresholdImporterTest Class Reference

Class ilTestSkillLevelThresholdImporterTest. 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_ilRbacAdmin ()
 
 addGlobal_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilBench ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_GlobalScreenService ()
 
 addGlobal_ilNavigationHistory ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilComponentRepository ()
 
 addGlobal_ilComponentFactory ()
 
 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 ()
 
 addGlobal_skillService ()
 
 addGlobal_objectService ()
 
 addGlobal_resourceStorage ()
 
 getTestObjMock ()
 

Private Attributes

ilTestSkillLevelThresholdImporter $testObj
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestSkillLevelThresholdImporterTest::setUp ( )
protected

Definition at line 29 of file ilTestSkillLevelThresholdImporterTest.php.

References $DIC.

29  : void
30  {
31  global $DIC;
32  parent::setUp();
33 
34  $this->testObj = new ilTestSkillLevelThresholdImporter($DIC['ilDB']);
35  }
global $DIC
Definition: feed.php:28

◆ test_instantiateObject_shouldReturnInstance()

ilTestSkillLevelThresholdImporterTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 37 of file ilTestSkillLevelThresholdImporterTest.php.

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

◆ testFailedThresholdImportSkillList()

ilTestSkillLevelThresholdImporterTest::testFailedThresholdImportSkillList ( )

Definition at line 75 of file ilTestSkillLevelThresholdImporterTest.php.

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

◆ testImportedQuestionSkillAssignmentList()

ilTestSkillLevelThresholdImporterTest::testImportedQuestionSkillAssignmentList ( )

Definition at line 61 of file ilTestSkillLevelThresholdImporterTest.php.

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

◆ testImportInstallationId()

ilTestSkillLevelThresholdImporterTest::testImportInstallationId ( )

Definition at line 48 of file ilTestSkillLevelThresholdImporterTest.php.

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

◆ testImportMappingRegistry()

ilTestSkillLevelThresholdImporterTest::testImportMappingRegistry ( )

Definition at line 54 of file ilTestSkillLevelThresholdImporterTest.php.

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

◆ testImportThresholdList()

ilTestSkillLevelThresholdImporterTest::testImportThresholdList ( )

Definition at line 68 of file ilTestSkillLevelThresholdImporterTest.php.

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

◆ testTargetTestId()

ilTestSkillLevelThresholdImporterTest::testTargetTestId ( )

Definition at line 42 of file ilTestSkillLevelThresholdImporterTest.php.

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

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: