From da0cc79b9e2922d3d1ac2dd71c9eb5a8b7212071 Mon Sep 17 00:00:00 2001 From: Sebastien Marinier Date: Tue, 22 Oct 2024 15:46:50 +0200 Subject: [PATCH] fix: unit test with groupManager Signed-off-by: Sebastien Marinier --- tests/Unit/Service/RestrictionServiceTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Unit/Service/RestrictionServiceTest.php b/tests/Unit/Service/RestrictionServiceTest.php index c0584df..807c837 100644 --- a/tests/Unit/Service/RestrictionServiceTest.php +++ b/tests/Unit/Service/RestrictionServiceTest.php @@ -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() {