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 71fe272888
commit da0cc79b9e
1 changed files with 4 additions and 1 deletions

View File

@ -8,16 +8,19 @@ use OCA\BigBlueButton\Db\Restriction;
use OCA\BigBlueButton\Db\RestrictionMapper;
use OCA\BigBlueButton\Db\Room;
use OCA\BigBlueButton\Service\RestrictionService;
use OCP\IGroupManager;
use PHPUnit\Framework\TestCase;
class RestrictionServiceTest extends TestCase {
protected $mapper;
protected $groupManager;
protected $service;
public function setUp(): void {
$this->mapper = $this->createMock(RestrictionMapper::class);
$this->groupManager = $this->createMock(IGroupManager::class);
$this->service = new RestrictionService($this->mapper);
$this->service = new RestrictionService($this->mapper, $this->groupManager);
}
public function testFindByGroupIds() {