ILIAS  release_8 Revision v8.24
ilTestSkillEvaluationGUITest 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 ilTestSkillEvaluationGUITest:
+ Collaboration diagram for ilTestSkillEvaluationGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testQuestionList ()
 
 testObjectiveOrientedContainer ()
 
 testTestSession ()
 
 testNoSkillProfileOptionEnabled ()
 
 testAvailableSkillProfiles ()
 
 testAvailableSkills ()
 

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

ilTestSkillEvaluationGUI $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 ilTestSkillEvaluationGUITest

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

Definition at line 25 of file ilTestSkillEvaluationGUITest.php.

Member Function Documentation

◆ setUp()

ilTestSkillEvaluationGUITest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 29 of file ilTestSkillEvaluationGUITest.php.

29 : void
30 {
31 parent::setUp();
32
33 $this->testObj = new ilTestSkillEvaluationGUI(
34 $this->createMock(ilCtrl::class),
35 $this->createMock(ilTabsGUI::class),
36 $this->createMock(ilGlobalPageTemplate::class),
37 $this->createMock(ilLanguage::class),
38 $this->createMock(ilDBInterface::class),
39 $this->createMock(ilObjTest::class)
40 );
41 }

◆ test_instantiateObject_shouldReturnInstance()

ilTestSkillEvaluationGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 43 of file ilTestSkillEvaluationGUITest.php.

43 : void
44 {
45 $this->assertInstanceOf(ilTestSkillEvaluationGUI::class, $this->testObj);
46 }

◆ testAvailableSkillProfiles()

ilTestSkillEvaluationGUITest::testAvailableSkillProfiles ( )

Definition at line 78 of file ilTestSkillEvaluationGUITest.php.

78 : void
79 {
80 $expected = ["test", "test2"];
81 $this->testObj->setAvailableSkillProfiles($expected);
82 $this->assertEquals($expected, $this->testObj->getAvailableSkillProfiles());
83 }

◆ testAvailableSkills()

ilTestSkillEvaluationGUITest::testAvailableSkills ( )

Definition at line 85 of file ilTestSkillEvaluationGUITest.php.

85 : void
86 {
87 $expected = ["test", "test2"];
88 $this->testObj->setAvailableSkills($expected);
89 $this->assertEquals($expected, $this->testObj->getAvailableSkills());
90 }

◆ testNoSkillProfileOptionEnabled()

ilTestSkillEvaluationGUITest::testNoSkillProfileOptionEnabled ( )

Definition at line 69 of file ilTestSkillEvaluationGUITest.php.

69 : void
70 {
71 $this->testObj->setNoSkillProfileOptionEnabled(false);
72 $this->assertFalse($this->testObj->isNoSkillProfileOptionEnabled());
73
74 $this->testObj->setNoSkillProfileOptionEnabled(true);
75 $this->assertTrue($this->testObj->isNoSkillProfileOptionEnabled());
76 }

◆ testObjectiveOrientedContainer()

ilTestSkillEvaluationGUITest::testObjectiveOrientedContainer ( )

Definition at line 55 of file ilTestSkillEvaluationGUITest.php.

55 : void
56 {
57 $mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
58 $this->testObj->setObjectiveOrientedContainer($mock);
59 $this->assertEquals($mock, $this->testObj->getObjectiveOrientedContainer());
60 }

◆ testQuestionList()

ilTestSkillEvaluationGUITest::testQuestionList ( )

Definition at line 48 of file ilTestSkillEvaluationGUITest.php.

48 : void
49 {
50 $mock = $this->createMock(ilAssQuestionList::class);
51 $this->testObj->setQuestionList($mock);
52 $this->assertEquals($mock, $this->testObj->getQuestionList());
53 }

◆ testTestSession()

ilTestSkillEvaluationGUITest::testTestSession ( )

Definition at line 62 of file ilTestSkillEvaluationGUITest.php.

62 : void
63 {
64 $mock = $this->createMock(ilTestSession::class);
65 $this->testObj->setTestSession($mock);
66 $this->assertEquals($mock, $this->testObj->getTestSession());
67 }

Field Documentation

◆ $testObj

ilTestSkillEvaluationGUI ilTestSkillEvaluationGUITest::$testObj
private

Definition at line 27 of file ilTestSkillEvaluationGUITest.php.


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