ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 ()
 
- Public Member Functions inherited from ilTestBaseTestCase
 createInstanceOf (string $class_name, array $explicit_parameters=[])
 
 createTraitInstanceOf (string $class_name, array $explicit_parameters=[])
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 

Private Attributes

ilTestSkillLevelThresholdImporter $testObj
 

Additional Inherited Members

- Static Public Member Functions inherited from ilTestBaseTestCase
static callMethod ($obj, $name, array $args=[])
 
static getNonPublicPropertyValue (object $obj, string $name)
 
- Data Fields inherited from ilTestBaseTestCase
const string MOCKED_METHOD_WITHOUT_OUTPUT = 'MOCKED_METHOD_WITHOUT_OUTPUT'
 
const string DYNAMIC_CLASS = 'DynamicClass'
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 
Container $backup_dic = null
 
- Static Protected Attributes inherited from ilTestBaseTestCase
static int $DYNAMIC_CLASS_COUNT = 0
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestSkillLevelThresholdImporterTest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 29 of file ilTestSkillLevelThresholdImporterTest.php.

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

◆ test_instantiateObject_shouldReturnInstance()

ilTestSkillLevelThresholdImporterTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 38 of file ilTestSkillLevelThresholdImporterTest.php.

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

◆ testFailedThresholdImportSkillList()

ilTestSkillLevelThresholdImporterTest::testFailedThresholdImportSkillList ( )

Definition at line 78 of file ilTestSkillLevelThresholdImporterTest.php.

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

◆ testImportedQuestionSkillAssignmentList()

ilTestSkillLevelThresholdImporterTest::testImportedQuestionSkillAssignmentList ( )

Definition at line 64 of file ilTestSkillLevelThresholdImporterTest.php.

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

◆ testImportInstallationId()

ilTestSkillLevelThresholdImporterTest::testImportInstallationId ( )

Definition at line 50 of file ilTestSkillLevelThresholdImporterTest.php.

50 : void
51 {
52 $importInstallationId = 12;
53 $this->testObj->setImportInstallationId($importInstallationId);
54 $this->assertEquals($importInstallationId, $this->testObj->getImportInstallationId());
55 }

◆ testImportMappingRegistry()

ilTestSkillLevelThresholdImporterTest::testImportMappingRegistry ( )

Definition at line 57 of file ilTestSkillLevelThresholdImporterTest.php.

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

◆ testImportThresholdList()

ilTestSkillLevelThresholdImporterTest::testImportThresholdList ( )

Definition at line 71 of file ilTestSkillLevelThresholdImporterTest.php.

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

◆ testTargetTestId()

ilTestSkillLevelThresholdImporterTest::testTargetTestId ( )

Definition at line 43 of file ilTestSkillLevelThresholdImporterTest.php.

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

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: