Skip to content

Commit

Permalink
fix: unit test with groupManager
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastien Marinier <[email protected]>
  • Loading branch information
smarinier committed Oct 22, 2024
1 parent 71fe272 commit da0cc79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Unit/Service/RestrictionServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@
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() {
Expand Down

0 comments on commit da0cc79

Please sign in to comment.