ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestSkillLevelThresholdXmlParserTest Class Reference

Class ilTestSkillLevelThresholdXmlParserTest. More...

+ Inheritance diagram for ilTestSkillLevelThresholdXmlParserTest:
+ Collaboration diagram for ilTestSkillLevelThresholdXmlParserTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testParsingActive ()
 
 testInitSkillLevelThresholdImportList ()
 
 testCurSkillBaseId ()
 
 testCurSkillTrefId ()
 
 testCurSkillLevelThreshold ()
 
- 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

ilTestSkillLevelThresholdXmlParser $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()

ilTestSkillLevelThresholdXmlParserTest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 29 of file ilTestSkillLevelThresholdXmlParserTest.php.

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

◆ test_instantiateObject_shouldReturnInstance()

ilTestSkillLevelThresholdXmlParserTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 36 of file ilTestSkillLevelThresholdXmlParserTest.php.

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

◆ testCurSkillBaseId()

ilTestSkillLevelThresholdXmlParserTest::testCurSkillBaseId ( )

Definition at line 60 of file ilTestSkillLevelThresholdXmlParserTest.php.

60 : void
61 {
62 $curSkillBaseId = 12;
63 $this->testObj->setCurSkillBaseId($curSkillBaseId);
64 $this->assertEquals($curSkillBaseId, $this->testObj->getCurSkillBaseId());
65 }

◆ testCurSkillLevelThreshold()

ilTestSkillLevelThresholdXmlParserTest::testCurSkillLevelThreshold ( )

Definition at line 74 of file ilTestSkillLevelThresholdXmlParserTest.php.

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

◆ testCurSkillTrefId()

ilTestSkillLevelThresholdXmlParserTest::testCurSkillTrefId ( )

Definition at line 67 of file ilTestSkillLevelThresholdXmlParserTest.php.

67 : void
68 {
69 $curSkillTrefId = 12;
70 $this->testObj->setCurSkillTrefId($curSkillTrefId);
71 $this->assertEquals($curSkillTrefId, $this->testObj->getCurSkillTrefId());
72 }

◆ testInitSkillLevelThresholdImportList()

ilTestSkillLevelThresholdXmlParserTest::testInitSkillLevelThresholdImportList ( )

Definition at line 50 of file ilTestSkillLevelThresholdXmlParserTest.php.

50 : void
51 {
52 $this->addGlobal_ilDB();
53 $this->testObj->initSkillLevelThresholdImportList();
54 $this->assertInstanceOf(
55 ilTestSkillLevelThresholdImportList::class,
56 $this->testObj->getSkillLevelThresholdImportList()
57 );
58 }

References addGlobal_ilDB().

+ Here is the call graph for this function:

◆ testParsingActive()

ilTestSkillLevelThresholdXmlParserTest::testParsingActive ( )

Definition at line 41 of file ilTestSkillLevelThresholdXmlParserTest.php.

41 : void
42 {
43 $this->testObj->setParsingActive(false);
44 $this->assertFalse($this->testObj->isParsingActive());
45
46 $this->testObj->setParsingActive(true);
47 $this->assertTrue($this->testObj->isParsingActive());
48 }

Field Documentation

◆ $testObj

ilTestSkillLevelThresholdXmlParser ilTestSkillLevelThresholdXmlParserTest::$testObj
private

Definition at line 27 of file ilTestSkillLevelThresholdXmlParserTest.php.


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