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

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testConstructor ()
 
 testBuildFailsWithWrongContext ()
 

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

 $testEvaluationGUI_mock
 
 $lng_mock
 
 $ctrl_mock
 

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 ilTestPassDeletionConfirmationGUITest

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

Definition at line 25 of file ilTestPassDeletionConfirmationGUITest.php.

Member Function Documentation

◆ setUp()

ilTestPassDeletionConfirmationGUITest::setUp ( )
protected

Definition at line 33 of file ilTestPassDeletionConfirmationGUITest.php.

33  : void
34  {
35  parent::setUp();
36  $this->testEvaluationGUI_mock = $this->createMock(ilTestEvaluationGUI::class);
37  $this->lng_mock = $this->createMock(ilLanguage::class);
38  $this->ctrl_mock = $this->createMock(ilCtrl::class);
39  }

◆ test_instantiateObject_shouldReturnInstance()

ilTestPassDeletionConfirmationGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 41 of file ilTestPassDeletionConfirmationGUITest.php.

41  : void
42  {
43  $instance = new ilTestPassDeletionConfirmationGUI(
44  $this->ctrl_mock,
45  $this->lng_mock,
46  $this->testEvaluationGUI_mock
47  );
48 
49  $this->assertInstanceOf(ilTestPassDeletionConfirmationGUI::class, $instance);
50  }

◆ testBuildFailsWithWrongContext()

ilTestPassDeletionConfirmationGUITest::testBuildFailsWithWrongContext ( )

Definition at line 61 of file ilTestPassDeletionConfirmationGUITest.php.

61  : void
62  {
63  $gui = new ilTestPassDeletionConfirmationGUI($this->ctrl_mock, $this->lng_mock, $this->testEvaluationGUI_mock);
64  $this->expectException(ilTestException::class);
65  $gui->build(20, 5, "invalidContext");
66  }

◆ testConstructor()

ilTestPassDeletionConfirmationGUITest::testConstructor ( )

Definition at line 52 of file ilTestPassDeletionConfirmationGUITest.php.

52  : void
53  {
54  $this->ctrl_mock->expects($this->once())
55  ->method("getFormAction")
56  ->with($this->testEvaluationGUI_mock);
57 
58  new ilTestPassDeletionConfirmationGUI($this->ctrl_mock, $this->lng_mock, $this->testEvaluationGUI_mock);
59  }

Field Documentation

◆ $ctrl_mock

ilTestPassDeletionConfirmationGUITest::$ctrl_mock
private

Definition at line 31 of file ilTestPassDeletionConfirmationGUITest.php.

◆ $lng_mock

ilTestPassDeletionConfirmationGUITest::$lng_mock
private

Definition at line 29 of file ilTestPassDeletionConfirmationGUITest.php.

◆ $testEvaluationGUI_mock

ilTestPassDeletionConfirmationGUITest::$testEvaluationGUI_mock
private

Definition at line 27 of file ilTestPassDeletionConfirmationGUITest.php.


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