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

Class ilTestSkillLevelThresholdTest. More...

+ Inheritance diagram for ilTestSkillLevelThresholdTest:
+ Collaboration diagram for ilTestSkillLevelThresholdTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testTestId ()
 
 testSkillBaseId ()
 
 testSkillTrefId ()
 
 testSkillLevelId ()
 
 testThreshold ()
 
- 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

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

ilTestSkillLevelThresholdTest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 29 of file ilTestSkillLevelThresholdTest.php.

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

◆ test_instantiateObject_shouldReturnInstance()

ilTestSkillLevelThresholdTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 36 of file ilTestSkillLevelThresholdTest.php.

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

◆ testSkillBaseId()

ilTestSkillLevelThresholdTest::testSkillBaseId ( )

Definition at line 48 of file ilTestSkillLevelThresholdTest.php.

48 : void
49 {
50 $skillBaseId = 12;
51 $this->testObj->setSkillBaseId($skillBaseId);
52 $this->assertEquals($skillBaseId, $this->testObj->getSkillBaseId());
53 }

◆ testSkillLevelId()

ilTestSkillLevelThresholdTest::testSkillLevelId ( )

Definition at line 62 of file ilTestSkillLevelThresholdTest.php.

62 : void
63 {
64 $skillLevelId = 12;
65 $this->testObj->setSkillLevelId($skillLevelId);
66 $this->assertEquals($skillLevelId, $this->testObj->getSkillLevelId());
67 }

◆ testSkillTrefId()

ilTestSkillLevelThresholdTest::testSkillTrefId ( )

Definition at line 55 of file ilTestSkillLevelThresholdTest.php.

55 : void
56 {
57 $skillTrefId = 12;
58 $this->testObj->setSkillTrefId($skillTrefId);
59 $this->assertEquals($skillTrefId, $this->testObj->getSkillTrefId());
60 }

◆ testTestId()

ilTestSkillLevelThresholdTest::testTestId ( )

Definition at line 41 of file ilTestSkillLevelThresholdTest.php.

41 : void
42 {
43 $testId = 12;
44 $this->testObj->setTestId($testId);
45 $this->assertEquals($testId, $this->testObj->getTestId());
46 }

◆ testThreshold()

ilTestSkillLevelThresholdTest::testThreshold ( )

Definition at line 69 of file ilTestSkillLevelThresholdTest.php.

69 : void
70 {
71 $threshold = 12;
72 $this->testObj->setThreshold($threshold);
73 $this->assertEquals($threshold, $this->testObj->getThreshold());
74 }

Field Documentation

◆ $testObj

ilTestSkillLevelThreshold ilTestSkillLevelThresholdTest::$testObj
private

Definition at line 27 of file ilTestSkillLevelThresholdTest.php.


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