ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilIndividualAssessmentCommonSettingsGUITest Class Reference
+ Inheritance diagram for ilIndividualAssessmentCommonSettingsGUITest:
+ Collaboration diagram for ilIndividualAssessmentCommonSettingsGUITest:

Public Member Functions

 test_createObject ()
 
 test_executeCommand_with_unknown_command ()
 

Detailed Description

Member Function Documentation

◆ test_createObject()

ilIndividualAssessmentCommonSettingsGUITest::test_createObject ( )

Definition at line 25 of file ilIndividualAssessmentCommonSettingsGUITest.php.

References $lng.

25  : void
26  {
27  $iass = $this->createMock(ilObjIndividualAssessment::class);
28  $ctrl = $this->createMock(ilCtrl::class);
29  $tpl = $this->createMock(ilGlobalTemplateInterface::class);
30  $lng = $this->createMock(ilLanguage::class);
31  $obj_service = $this->createMock(ilObjectService::class);
32 
34  $iass,
35  $ctrl,
36  $tpl,
37  $lng,
38  $obj_service
39  );
40 
41  $this->assertInstanceOf(ilIndividualAssessmentCommonSettingsGUI::class, $obj);
42  }
global $lng
Definition: privfeed.php:31

◆ test_executeCommand_with_unknown_command()

ilIndividualAssessmentCommonSettingsGUITest::test_executeCommand_with_unknown_command ( )

Definition at line 44 of file ilIndividualAssessmentCommonSettingsGUITest.php.

References $lng.

44  : void
45  {
46  $iass = $this->createMock(ilObjIndividualAssessment::class);
47  $ctrl = $this->createMock(ilCtrl::class);
48  $tpl = $this->createMock(ilGlobalTemplateInterface::class);
49  $lng = $this->createMock(ilLanguage::class);
50  $obj_service = $this->createMock(ilObjectService::class);
51 
52  $ctrl
53  ->expects($this->once())
54  ->method("getCmd")
55  ->willReturn("unknown_command")
56  ;
57 
59  $iass,
60  $ctrl,
61  $tpl,
62  $lng,
63  $obj_service
64  );
65 
66  $this->expectException(Exception::class);
67  $this->expectExceptionMessage("Unknown command unknown_command");
68 
69  $obj->executeCommand();
70  }
global $lng
Definition: privfeed.php:31

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