ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestPersonalSkillsGUITest.php
Go to the documentation of this file.
1 <?php
2 
24 {
26 
27  protected function setUp(): void
28  {
29  parent::setUp();
30 
31  $this->testObj = new ilTestPersonalSkillsGUI(
32  $this->createMock(ilLanguage::class),
33  0
34  );
35  }
36 
38  {
39  $this->assertInstanceOf(ilTestPersonalSkillsGUI::class, $this->testObj);
40  }
41 
42  public function testAvailableSkills(): void
43  {
44  $expected = [
45  "test123" => "test12",
46  "2" => 21,
47  ];
48  $this->testObj->setAvailableSkills($expected);
49  $this->assertEquals($expected, $this->testObj->getAvailableSkills());
50  }
51 
52  public function testSelectedSkillProfile(): void
53  {
54  $this->testObj->setSelectedSkillProfile(4);
55  $this->assertEquals(4, $this->testObj->getSelectedSkillProfile());
56  }
57 
58  public function testReachedSkillLevels(): void
59  {
60  $expected = [
61  "test123" => "test12",
62  "2" => 21,
63  ];
64  $this->testObj->setReachedSkillLevels($expected);
65  $this->assertEquals($expected, $this->testObj->getReachedSkillLevels());
66  }
67 
68  public function testUsrId(): void
69  {
70  $this->testObj->setUsrId(212);
71  $this->assertEquals(212, $this->testObj->getUsrId());
72  }
73 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilTestBaseClass.