fix: unit test with groupManager

Signed-off-by: Sebastien Marinier <sebastien.marinier@arawa.fr>
pull/295/head
Sebastien Marinier 2024-10-22 15:46:50 +02:00
parent da0cc79b9e
commit ab80d613e7
1 changed files with 9 additions and 1 deletions

View File

@ -12,7 +12,15 @@ use OCP\AppFramework\Db\MultipleObjectsReturnedException;
use OCP\IGroupManager;
class RestrictionService {
public function __construct(private RestrictionMapper $mapper, private IGroupManager $groupManager) {
/** @var RestrictionMapper */
private $mapper;
/** @var IGroupManager */
private $groupManager;
public function __construct(RestrictionMapper $mapper, IGroupManager $groupManager) {
$this->mapper = $mapper;
$this->groupManager = $groupManager;
}
public function findAll(): array {