ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestAnswerOptionalQuestionsConfirmationGUITest 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 ilTestAnswerOptionalQuestionsConfirmationGUITest:
+ Collaboration diagram for ilTestAnswerOptionalQuestionsConfirmationGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testGetAndSetCancelCmd ()
 
 testGetAndSetConfirmCmd ()
 

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 ()
 

Protected Attributes

 $lng_mock
 
- 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 ilTestAnswerOptionalQuestionsConfirmationGUITest

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

Definition at line 25 of file ilTestAnswerOptionalQuestionsConfirmationGUITest.php.

Member Function Documentation

◆ setUp()

ilTestAnswerOptionalQuestionsConfirmationGUITest::setUp ( )
protected

Definition at line 29 of file ilTestAnswerOptionalQuestionsConfirmationGUITest.php.

29  : void
30  {
31  parent::setUp();
32  $this->lng_mock = $this->createMock(ilLanguage::class);
33  }

◆ test_instantiateObject_shouldReturnInstance()

ilTestAnswerOptionalQuestionsConfirmationGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 35 of file ilTestAnswerOptionalQuestionsConfirmationGUITest.php.

35  : void
36  {
37  $instance = new ilTestAnswerOptionalQuestionsConfirmationGUI($this->lng_mock);
38 
39  $this->assertInstanceOf(ilTestAnswerOptionalQuestionsConfirmationGUI::class, $instance);
40  }

◆ testGetAndSetCancelCmd()

ilTestAnswerOptionalQuestionsConfirmationGUITest::testGetAndSetCancelCmd ( )

Definition at line 42 of file ilTestAnswerOptionalQuestionsConfirmationGUITest.php.

42  : void
43  {
44  $expect = "testCancelCmd";
45 
46  $gui = new ilTestAnswerOptionalQuestionsConfirmationGUI($this->lng_mock);
47 
48  $gui->setCancelCmd($expect);
49 
50  $this->assertEquals($expect, $gui->getCancelCmd());
51  }

◆ testGetAndSetConfirmCmd()

ilTestAnswerOptionalQuestionsConfirmationGUITest::testGetAndSetConfirmCmd ( )

Definition at line 53 of file ilTestAnswerOptionalQuestionsConfirmationGUITest.php.

53  : void
54  {
55  $expect = "testConfirmCmd";
56 
57  $gui = new ilTestAnswerOptionalQuestionsConfirmationGUI($this->lng_mock);
58 
59  $gui->setConfirmCmd($expect);
60 
61  $this->assertEquals($expect, $gui->getConfirmCmd());
62  }

Field Documentation

◆ $lng_mock

ilTestAnswerOptionalQuestionsConfirmationGUITest::$lng_mock
protected

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