ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
SkillPersonalTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Skill\Personal;
22 
24 
28 class SkillPersonalTest extends TestCase
29 {
32 
33  protected function setUp(): 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  }
50 
51  public function testSelectedSkillProperties(): void
52  {
54 
55  $this->assertEquals(
56  11,
57  $s->getSkillNodeId()
58  );
59  $this->assertEquals(
60  "My selected skill",
61  $s->getTitle()
62  );
63  }
64 
65  public function testMaterialProperties(): 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  }
94 }