ILIAS  release_7 Revision v7.30-3-g800a261c036
ilTermsOfServiceAcceptanceHistoryGUITest Class Reference

Class ilTermsOfServiceAcceptanceHistoryGUITest. More...

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

Public Member Functions

 setUp ()
 
 testAccessDeniedErrorIsRaisedWhenPermissionsAreMissing ()
 

Protected Attributes

 $tableDataProviderFactory
 
 $tos
 
 $tpl
 
 $ctrl
 
 $lng
 
 $rbacsystem
 
 $error
 
 $uiFactory
 
 $uiRenderer
 
 $request
 
 $criterionTypeFactory
 
- Protected Attributes inherited from ilTermsOfServiceBaseTest
 $dic
 

Additional Inherited Members

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

Detailed Description

Member Function Documentation

◆ setUp()

ilTermsOfServiceAcceptanceHistoryGUITest::setUp ( )
Exceptions
ReflectionException

Reimplemented from ilTermsOfServiceBaseTest.

Definition at line 51 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

51 : void
52 {
53 parent::setUp();
54
55 $this->tos = $this->getMockBuilder(ilObjTermsOfService::class)->disableOriginalConstructor()->getMock();
56 $this->criterionTypeFactory = $this->getMockBuilder(ilTermsOfServiceCriterionTypeFactoryInterface::class)->disableOriginalConstructor()->getMock();
57 $this->tpl = $this->getMockBuilder(ilGlobalPageTemplate::class)->disableOriginalConstructor()->getMock();
58 $this->ctrl = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->getMock();
59 $this->lng = $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock();
60 $this->rbacsystem = $this->getMockBuilder(ilRbacSystem::class)->disableOriginalConstructor()->getMock();
61 $this->error = $this->getMockBuilder(ilErrorHandling::class)->disableOriginalConstructor()->getMock();
62 $this->request = $this->getMockBuilder(ServerRequestInterface::class)->disableOriginalConstructor()->getMock();
63 $this->uiFactory = $this->getMockBuilder(Factory::class)->disableOriginalConstructor()->getMock();
64 $this->uiRenderer = $this->getMockBuilder(Renderer::class)->disableOriginalConstructor()->getMock();
65 $this->tableDataProviderFactory = $this->getMockBuilder(ilTermsOfServiceTableDataProviderFactory::class)->disableOriginalConstructor()->getMock();
66 }
error($a_errmsg)
set error message @access public

References error().

+ Here is the call graph for this function:

◆ testAccessDeniedErrorIsRaisedWhenPermissionsAreMissing()

ilTermsOfServiceAcceptanceHistoryGUITest::testAccessDeniedErrorIsRaisedWhenPermissionsAreMissing ( )

Definition at line 71 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

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

References error().

+ Here is the call graph for this function:

Field Documentation

◆ $criterionTypeFactory

ilTermsOfServiceAcceptanceHistoryGUITest::$criterionTypeFactory
protected

Definition at line 46 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $ctrl

ilTermsOfServiceAcceptanceHistoryGUITest::$ctrl
protected

Definition at line 25 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $error

ilTermsOfServiceAcceptanceHistoryGUITest::$error
protected

Definition at line 34 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $lng

ilTermsOfServiceAcceptanceHistoryGUITest::$lng
protected

Definition at line 28 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $rbacsystem

ilTermsOfServiceAcceptanceHistoryGUITest::$rbacsystem
protected

Definition at line 31 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $request

ilTermsOfServiceAcceptanceHistoryGUITest::$request
protected

Definition at line 43 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $tableDataProviderFactory

ilTermsOfServiceAcceptanceHistoryGUITest::$tableDataProviderFactory
protected

Definition at line 16 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $tos

ilTermsOfServiceAcceptanceHistoryGUITest::$tos
protected

Definition at line 19 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $tpl

ilTermsOfServiceAcceptanceHistoryGUITest::$tpl
protected

Definition at line 22 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $uiFactory

ilTermsOfServiceAcceptanceHistoryGUITest::$uiFactory
protected

Definition at line 37 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.

◆ $uiRenderer

ilTermsOfServiceAcceptanceHistoryGUITest::$uiRenderer
protected

Definition at line 40 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.


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