ILIAS  release_8 Revision v8.24
ilTermsOfServiceAcceptanceHistoryGUITest Class Reference

Class ilTermsOfServiceAcceptanceHistoryGUITest. More...

+ Inheritance diagram for ilTermsOfServiceAcceptanceHistoryGUITest:
+ Collaboration diagram for ilTermsOfServiceAcceptanceHistoryGUITest:

Public Member Functions

 testAccessDeniedErrorIsRaisedWhenPermissionsAreMissing ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTermsOfServiceBaseTest
 setUp ()
 
 getLanguageMock ()
 
 getUiFactoryMock ()
 
 setGlobalVariable (string $name, $value)
 
 getCriterionConfig ($value=null)
 

Protected Attributes

ilTermsOfServiceTableDataProviderFactory $tableDataProviderFactory
 
ilObjTermsOfService $tos
 
ilGlobalTemplateInterface $tpl
 
ilCtrlInterface $ctrl
 
ilLanguage $lng
 
ilRbacSystem $rbacsystem
 
ilErrorHandling $error
 
Factory $uiFactory
 
Renderer $uiRenderer
 
GlobalHttpState $http
 
Refinery $refinery
 
ilTermsOfServiceCriterionTypeFactoryInterface $criterionTypeFactory
 
- Protected Attributes inherited from ilTermsOfServiceBaseTest
Container $dic
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTermsOfServiceAcceptanceHistoryGUITest::setUp ( )
protected

Reimplemented from ilTermsOfServiceBaseTest.

Definition at line 58 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

58 : void
59 {
60 parent::setUp();
61
62 $this->tos = $this->getMockBuilder(ilObjTermsOfService::class)->disableOriginalConstructor()->getMock();
63 $this->criterionTypeFactory = $this->getMockBuilder(ilTermsOfServiceCriterionTypeFactoryInterface::class)->disableOriginalConstructor()->getMock();
64 $this->tpl = $this->getMockBuilder(ilGlobalTemplateInterface::class)->getMock();
65 $this->ctrl = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->getMock();
66 $this->lng = $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock();
67 $this->rbacsystem = $this->getMockBuilder(ilRbacSystem::class)->disableOriginalConstructor()->getMock();
68 $this->error = $this->getMockBuilder(ilErrorHandling::class)->disableOriginalConstructor()->getMock();
69 $this->http = $this->getMockBuilder(GlobalHttpState::class)->disableOriginalConstructor()->getMock();
70 $this->refinery = $this->getMockBuilder(Refinery::class)->disableOriginalConstructor()->getMock();
71 $this->uiFactory = $this->getMockBuilder(Factory::class)->disableOriginalConstructor()->getMock();
72 $this->uiRenderer = $this->getMockBuilder(Renderer::class)->disableOriginalConstructor()->getMock();
73 $this->tableDataProviderFactory = $this->getMockBuilder(ilTermsOfServiceTableDataProviderFactory::class)->disableOriginalConstructor()->getMock();
74 }
error(string $a_errmsg)
static http()
Fetches the global http state from ILIAS.

References ILIAS\Repository\ctrl(), error(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

◆ testAccessDeniedErrorIsRaisedWhenPermissionsAreMissing()

ilTermsOfServiceAcceptanceHistoryGUITest::testAccessDeniedErrorIsRaisedWhenPermissionsAreMissing ( )

Definition at line 76 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

76 : void
77 {
78 $this->ctrl
79 ->method('getCmd')
80 ->willReturnOnConsecutiveCalls(
81 'showAcceptanceHistory'
82 );
83
84 $this->rbacsystem
85 ->method('checkAccess')
86 ->willReturn(false);
87
88 $this->error
89 ->method('raiseError')
90 ->willThrowException(new ilException('no_permission'));
91
93 $this->tos,
94 $this->criterionTypeFactory,
95 $this->tpl,
96 $this->ctrl,
97 $this->lng,
98 $this->rbacsystem,
99 $this->error,
100 $this->http,
101 $this->refinery,
102 $this->uiFactory,
103 $this->uiRenderer,
104 $this->tableDataProviderFactory
105 );
106
107 $this->expectException(ilException::class);
108
109 $gui->executeCommand();
110 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References ILIAS\Repository\ctrl(), error(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

Field Documentation

◆ $criterionTypeFactory

ilTermsOfServiceCriterionTypeFactoryInterface ilTermsOfServiceAcceptanceHistoryGUITest::$criterionTypeFactory
protected

Definition at line 56 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $ctrl

ilCtrlInterface ilTermsOfServiceAcceptanceHistoryGUITest::$ctrl
protected

Definition at line 40 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $error

ilErrorHandling ilTermsOfServiceAcceptanceHistoryGUITest::$error
protected

Definition at line 46 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $http

GlobalHttpState ilTermsOfServiceAcceptanceHistoryGUITest::$http
protected

Definition at line 52 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $lng

ilLanguage ilTermsOfServiceAcceptanceHistoryGUITest::$lng
protected

Definition at line 42 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $rbacsystem

ilRbacSystem ilTermsOfServiceAcceptanceHistoryGUITest::$rbacsystem
protected

Definition at line 44 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $refinery

Refinery ilTermsOfServiceAcceptanceHistoryGUITest::$refinery
protected

Definition at line 54 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $tableDataProviderFactory

ilTermsOfServiceTableDataProviderFactory ilTermsOfServiceAcceptanceHistoryGUITest::$tableDataProviderFactory
protected

Definition at line 34 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $tos

ilObjTermsOfService ilTermsOfServiceAcceptanceHistoryGUITest::$tos
protected

Definition at line 36 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $tpl

ilGlobalTemplateInterface ilTermsOfServiceAcceptanceHistoryGUITest::$tpl
protected

Definition at line 38 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $uiFactory

Factory ilTermsOfServiceAcceptanceHistoryGUITest::$uiFactory
protected

Definition at line 48 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $uiRenderer

Renderer ilTermsOfServiceAcceptanceHistoryGUITest::$uiRenderer
protected

Definition at line 50 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.


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