Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tfamula committed Oct 31, 2023
1 parent fd557d9 commit 61fd9cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Modules/TestQuestionPool/test/assBaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ protected function setUp(): void
$rbacsystem_mock = $this->getMockBuilder(ilRbacSystem::class)->disableOriginalConstructor()->getMock();
$this->setGlobalVariable('rbacsystem', $rbacsystem_mock);

$rbacreview_mock = $this->getMockBuilder(ilRbacReview::class)->disableOriginalConstructor()->getMock();
$this->setGlobalVariable('rbacreview', $rbacreview_mock);

$refineryMock = $this->getMockBuilder(RefineryFactory::class)->disableOriginalConstructor()->getMock();
$refineryMock->method('random')->willReturn($this->getMockBuilder(RandomGroup::class)->getMock());
$this->setGlobalVariable('refinery', $refineryMock);
Expand Down

0 comments on commit 61fd9cd

Please sign in to comment.