ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 ()
 

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=[])
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestSkillLevelThresholdXmlParserTest::setUp ( )
protected

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  }

◆ 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: