ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestPersonalSkillsGUITest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilTestPersonalSkillsGUITest:
+ Collaboration diagram for ilTestPersonalSkillsGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testAvailableSkills ()
 
 testSelectedSkillProfile ()
 
 testReachedSkillLevels ()
 
 testUsrId ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 
 setGlobalVariable (string $name, $value)
 
 getGlobalTemplateMock ()
 
 getDatabaseMock ()
 
 getIliasMock ()
 
 addGlobal_ilAccess ()
 
 addGlobal_ilUser ()
 
 addGlobal_objDefinition ()
 
 addGlobal_tree ()
 
 addGlobal_ilSetting ()
 
 addGlobal_rbacsystem ()
 
 addGlobal_ilRbacAdmin ()
 
 addGlobal_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilBench ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_GlobalScreenService ()
 
 addGlobal_ilNavigationHistory ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilComponentRepository ()
 
 addGlobal_ilComponentFactory ()
 
 addGlobal_ilTabs ()
 
 addGlobal_ilObjDataCache ()
 
 addGlobal_ilLocator ()
 
 addGlobal_rbacreview ()
 
 addGlobal_ilToolbar ()
 
 addGlobal_http ()
 
 addGlobal_ilIliasIniFile ()
 
 addGlobal_ilLoggerFactory ()
 
 addGlobal_ilHelp ()
 
 addGlobal_ui ()
 
 addGlobal_uiFactory ()
 
 addGlobal_uiRenderer ()
 
 addGlobal_refinery ()
 
 addGlobal_skillService ()
 
 addGlobal_objectService ()
 
 addGlobal_resourceStorage ()
 
 getTestObjMock ()
 

Private Attributes

ilTestPersonalSkillsGUI $testObj
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilTestPersonalSkillsGUITest

Author
Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de

Definition at line 23 of file ilTestPersonalSkillsGUITest.php.

Member Function Documentation

◆ setUp()

ilTestPersonalSkillsGUITest::setUp ( )
protected

Definition at line 27 of file ilTestPersonalSkillsGUITest.php.

27  : void
28  {
29  parent::setUp();
30 
31  $this->testObj = new ilTestPersonalSkillsGUI(
32  $this->createMock(ilLanguage::class),
33  0
34  );
35  }

◆ test_instantiateObject_shouldReturnInstance()

ilTestPersonalSkillsGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 37 of file ilTestPersonalSkillsGUITest.php.

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

◆ testAvailableSkills()

ilTestPersonalSkillsGUITest::testAvailableSkills ( )

Definition at line 42 of file ilTestPersonalSkillsGUITest.php.

42  : void
43  {
44  $expected = [
45  "test123" => "test12",
46  "2" => 21,
47  ];
48  $this->testObj->setAvailableSkills($expected);
49  $this->assertEquals($expected, $this->testObj->getAvailableSkills());
50  }

◆ testReachedSkillLevels()

ilTestPersonalSkillsGUITest::testReachedSkillLevels ( )

Definition at line 58 of file ilTestPersonalSkillsGUITest.php.

58  : void
59  {
60  $expected = [
61  "test123" => "test12",
62  "2" => 21,
63  ];
64  $this->testObj->setReachedSkillLevels($expected);
65  $this->assertEquals($expected, $this->testObj->getReachedSkillLevels());
66  }

◆ testSelectedSkillProfile()

ilTestPersonalSkillsGUITest::testSelectedSkillProfile ( )

Definition at line 52 of file ilTestPersonalSkillsGUITest.php.

52  : void
53  {
54  $this->testObj->setSelectedSkillProfile(4);
55  $this->assertEquals(4, $this->testObj->getSelectedSkillProfile());
56  }

◆ testUsrId()

ilTestPersonalSkillsGUITest::testUsrId ( )

Definition at line 68 of file ilTestPersonalSkillsGUITest.php.

68  : void
69  {
70  $this->testObj->setUsrId(212);
71  $this->assertEquals(212, $this->testObj->getUsrId());
72  }

Field Documentation

◆ $testObj

ilTestPersonalSkillsGUI ilTestPersonalSkillsGUITest::$testObj
private

Definition at line 25 of file ilTestPersonalSkillsGUITest.php.


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