diff options
author | Joas Schilling <coding@schilljs.com> | 2023-07-25 21:45:07 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-07-27 23:13:37 +0200 |
commit | ad12a740cb619d701de332eedda91dcbb1f53047 (patch) | |
tree | 3bb0fcd87424e72ca0f259e94232c361e7e695c1 /tests/lib/Group/ManagerTest.php | |
parent | b93f101d6209905d22b90816bf6a0cfe89a38a8b (diff) | |
download | nextcloud-server-ad12a740cb619d701de332eedda91dcbb1f53047.tar.gz nextcloud-server-ad12a740cb619d701de332eedda91dcbb1f53047.zip |
fix!: Remove symfony EventDispatcherInterface from User
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/Group/ManagerTest.php')
-rw-r--r-- | tests/lib/Group/ManagerTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib/Group/ManagerTest.php b/tests/lib/Group/ManagerTest.php index 710d3888d55..679223888bb 100644 --- a/tests/lib/Group/ManagerTest.php +++ b/tests/lib/Group/ManagerTest.php @@ -26,6 +26,7 @@ namespace Test\Group; use OC\Group\Database; use OC\User\User; use OC\User\Manager; +use OCP\EventDispatcher\IEventDispatcher; use OCP\GroupInterface; use OCP\Group\Backend\ISearchableGroupBackend; use OCP\ICacheFactory; @@ -43,6 +44,8 @@ class ManagerTest extends TestCase { protected $userManager; /** @var EventDispatcherInterface|MockObject */ protected $dispatcher; + /** @var IEventDispatcher|MockObject */ + protected $eventDispatcher; /** @var LoggerInterface|MockObject */ protected $logger; /** @var ICacheFactory|MockObject */ @@ -53,6 +56,7 @@ class ManagerTest extends TestCase { $this->userManager = $this->createMock(Manager::class); $this->dispatcher = $this->createMock(EventDispatcherInterface::class); + $this->eventDispatcher = $this->createMock(IEventDispatcher::class); $this->logger = $this->createMock(LoggerInterface::class); $this->cache = $this->createMock(ICacheFactory::class); } @@ -769,7 +773,7 @@ class ManagerTest extends TestCase { $backend->expects($this->once()) ->method('searchInGroup') ->with('testgroup', '', 1, 0) - ->willReturn([new User('user2', null, $this->dispatcher)]); + ->willReturn([new User('user2', null, $this->eventDispatcher)]); $this->userManager->expects($this->never())->method('get'); |