Class ilTermsOfServiceAcceptanceHistoryGUITest.
More...
◆ setUp()
ilTermsOfServiceAcceptanceHistoryGUITest::setUp |
( |
| ) |
|
- Exceptions
-
Definition at line 51 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.
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();
◆ testAccessDeniedErrorIsRaisedWhenPermissionsAreMissing()
ilTermsOfServiceAcceptanceHistoryGUITest::testAccessDeniedErrorIsRaisedWhenPermissionsAreMissing |
( |
| ) |
|
Definition at line 71 of file ilTermsOfServiceAcceptanceHistoryGUITest.php.
74 ->expects($this->any())
76 ->willReturnOnConsecutiveCalls(
77 'showAcceptanceHistory' 81 ->expects($this->any())
82 ->method(
'checkAccess')
86 ->expects($this->any())
87 ->method(
'raiseError')
88 ->willThrowException(
new ilException(
'no_permission'));
92 $this->criterionTypeFactory,
101 $this->tableDataProviderFactory
104 $this->expectException(ilException::class);
106 $gui->executeCommand();
Class ilTermsOfServiceAcceptanceHistoryGUI.
◆ $criterionTypeFactory
ilTermsOfServiceAcceptanceHistoryGUITest::$criterionTypeFactory |
|
protected |
◆ $ctrl
ilTermsOfServiceAcceptanceHistoryGUITest::$ctrl |
|
protected |
◆ $error
ilTermsOfServiceAcceptanceHistoryGUITest::$error |
|
protected |
◆ $lng
ilTermsOfServiceAcceptanceHistoryGUITest::$lng |
|
protected |
◆ $rbacsystem
ilTermsOfServiceAcceptanceHistoryGUITest::$rbacsystem |
|
protected |
◆ $request
ilTermsOfServiceAcceptanceHistoryGUITest::$request |
|
protected |
◆ $tableDataProviderFactory
ilTermsOfServiceAcceptanceHistoryGUITest::$tableDataProviderFactory |
|
protected |
◆ $tos
ilTermsOfServiceAcceptanceHistoryGUITest::$tos |
|
protected |
◆ $tpl
ilTermsOfServiceAcceptanceHistoryGUITest::$tpl |
|
protected |
◆ $uiFactory
ilTermsOfServiceAcceptanceHistoryGUITest::$uiFactory |
|
protected |
◆ $uiRenderer
ilTermsOfServiceAcceptanceHistoryGUITest::$uiRenderer |
|
protected |
The documentation for this class was generated from the following file: