ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Skill\Personal\SkillPersonalTest Class Reference
+ Inheritance diagram for ILIAS\Skill\Personal\SkillPersonalTest:
+ Collaboration diagram for ILIAS\Skill\Personal\SkillPersonalTest:

Public Member Functions

 testSelectedSkillProperties ()
 
 testMaterialProperties ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

SelectedUserSkill $selected_skill
 
AssignedMaterial $material
 

Detailed Description

Author
Thomas Famula famul.nosp@m.a@le.nosp@m.ifos..nosp@m.de

Definition at line 28 of file SkillPersonalTest.php.

Member Function Documentation

◆ setUp()

ILIAS\Skill\Personal\SkillPersonalTest::setUp ( )
protected

Definition at line 33 of file SkillPersonalTest.php.

33  : void
34  {
35  parent::setUp();
36 
37  $this->selected_skill = new SelectedUserSkill(
38  11,
39  "My selected skill"
40  );
41  $this->material = new AssignedMaterial(
42  21,
43  22,
44  23,
45  24,
46  25,
47  26
48  );
49  }

◆ testMaterialProperties()

ILIAS\Skill\Personal\SkillPersonalTest::testMaterialProperties ( )

Definition at line 65 of file SkillPersonalTest.php.

References ILIAS\Skill\Personal\SkillPersonalTest\$material.

65  : void
66  {
67  $m = $this->material;
68 
69  $this->assertEquals(
70  21,
71  $m->getUserId()
72  );
73  $this->assertEquals(
74  22,
75  $m->getTopSkillId()
76  );
77  $this->assertEquals(
78  23,
79  $m->getSkillId()
80  );
81  $this->assertEquals(
82  24,
83  $m->getLevelId()
84  );
85  $this->assertEquals(
86  25,
87  $m->getWorkspaceId()
88  );
89  $this->assertEquals(
90  26,
91  $m->getTrefId()
92  );
93  }

◆ testSelectedSkillProperties()

ILIAS\Skill\Personal\SkillPersonalTest::testSelectedSkillProperties ( )

Definition at line 51 of file SkillPersonalTest.php.

References ILIAS\Skill\Personal\SkillPersonalTest\$selected_skill.

51  : void
52  {
54 
55  $this->assertEquals(
56  11,
57  $s->getSkillNodeId()
58  );
59  $this->assertEquals(
60  "My selected skill",
61  $s->getTitle()
62  );
63  }

Field Documentation

◆ $material

AssignedMaterial ILIAS\Skill\Personal\SkillPersonalTest::$material
protected

◆ $selected_skill

SelectedUserSkill ILIAS\Skill\Personal\SkillPersonalTest::$selected_skill
protected

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