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