mirror of https://github.com/sualko/cloud_bbb
fix: unit test with groupManager
Signed-off-by: Sebastien Marinier <sebastien.marinier@arawa.fr>pull/295/head
parent
71fe272888
commit
da0cc79b9e
|
@ -8,16 +8,19 @@ use OCA\BigBlueButton\Db\Restriction;
|
||||||
use OCA\BigBlueButton\Db\RestrictionMapper;
|
use OCA\BigBlueButton\Db\RestrictionMapper;
|
||||||
use OCA\BigBlueButton\Db\Room;
|
use OCA\BigBlueButton\Db\Room;
|
||||||
use OCA\BigBlueButton\Service\RestrictionService;
|
use OCA\BigBlueButton\Service\RestrictionService;
|
||||||
|
use OCP\IGroupManager;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class RestrictionServiceTest extends TestCase {
|
class RestrictionServiceTest extends TestCase {
|
||||||
protected $mapper;
|
protected $mapper;
|
||||||
|
protected $groupManager;
|
||||||
protected $service;
|
protected $service;
|
||||||
|
|
||||||
public function setUp(): void {
|
public function setUp(): void {
|
||||||
$this->mapper = $this->createMock(RestrictionMapper::class);
|
$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() {
|
public function testFindByGroupIds() {
|
||||||
|
|
Loading…
Reference in New Issue