ILIAS  release_8 Revision v8.24
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_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilComponentRepository ()
 
 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 ()
 

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 25 of file ilTestPersonalSkillsGUITest.php.

Member Function Documentation

◆ setUp()

ilTestPersonalSkillsGUITest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 29 of file ilTestPersonalSkillsGUITest.php.

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

◆ test_instantiateObject_shouldReturnInstance()

ilTestPersonalSkillsGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 39 of file ilTestPersonalSkillsGUITest.php.

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

◆ testAvailableSkills()

ilTestPersonalSkillsGUITest::testAvailableSkills ( )

Definition at line 44 of file ilTestPersonalSkillsGUITest.php.

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

◆ testReachedSkillLevels()

ilTestPersonalSkillsGUITest::testReachedSkillLevels ( )

Definition at line 60 of file ilTestPersonalSkillsGUITest.php.

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

◆ testSelectedSkillProfile()

ilTestPersonalSkillsGUITest::testSelectedSkillProfile ( )

Definition at line 54 of file ilTestPersonalSkillsGUITest.php.

54 : void
55 {
56 $this->testObj->setSelectedSkillProfile("testString");
57 $this->assertEquals("testString", $this->testObj->getSelectedSkillProfile());
58 }

◆ testUsrId()

ilTestPersonalSkillsGUITest::testUsrId ( )

Definition at line 70 of file ilTestPersonalSkillsGUITest.php.

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

Field Documentation

◆ $testObj

ilTestPersonalSkillsGUI ilTestPersonalSkillsGUITest::$testObj
private

Definition at line 27 of file ilTestPersonalSkillsGUITest.php.


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