Skip to content

Commit

Permalink
test(phpunit): adjust PermissionService instantiation
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
blizzz committed Mar 12, 2024
1 parent 3ef67c2 commit a600647
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/Service/PermissionsServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

namespace OCA\Tables\Service;

use OCA\Tables\Db\ContextMapper;
use OCA\Tables\Db\ShareMapper;
use OCA\Tables\Db\TableMapper;
use OCA\Tables\Db\ViewMapper;
Expand All @@ -41,8 +42,9 @@ public function testPreCheckUserIdGivenUser() {
$tableMapper = $this->createMock(TableMapper::class);
$shareMapper = $this->createMock(ShareMapper::class);
$viewMapper = $this->createMock(ViewMapper::class);
$contextMapper = $this->createMock(ContextMapper::class);
$userHelper = $this->createMock(UserHelper::class);
$permissionsService = new PermissionsService($logger, $userId, $tableMapper, $viewMapper, $shareMapper, $userHelper, false);
$permissionsService = new PermissionsService($logger, $userId, $tableMapper, $viewMapper, $shareMapper, $contextMapper, $userHelper, false);

self::assertEquals($userId, $permissionsService->preCheckUserId($userId));
}
Expand Down

0 comments on commit a600647

Please sign in to comment.