diff options
Diffstat (limited to 'apps/dav/tests/unit/DAV/HookManagerTest.php')
-rw-r--r-- | apps/dav/tests/unit/DAV/HookManagerTest.php | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/apps/dav/tests/unit/DAV/HookManagerTest.php b/apps/dav/tests/unit/DAV/HookManagerTest.php index eeda27d8aa3..97abe3881c0 100644 --- a/apps/dav/tests/unit/DAV/HookManagerTest.php +++ b/apps/dav/tests/unit/DAV/HookManagerTest.php @@ -39,19 +39,14 @@ use OCP\IL10N; use OCP\IUser; use OCP\IUserManager; use PHPUnit\Framework\MockObject\MockObject; -use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Test\TestCase; class HookManagerTest extends TestCase { /** @var IL10N */ private $l10n; - /** @var EventDispatcherInterface | MockObject */ - private $eventDispatcher; - protected function setUp(): void { parent::setUp(); - $this->eventDispatcher = $this->createMock(EventDispatcherInterface::class); $this->l10n = $this->createMock(IL10N::class); $this->l10n ->expects($this->any()) @@ -106,7 +101,7 @@ class HookManagerTest extends TestCase { 'principals/users/newUser', 'contacts', ['{DAV:}displayname' => 'Contacts']); - $hm = new HookManager($userManager, $syncService, $cal, $card, $defaults, $this->eventDispatcher); + $hm = new HookManager($userManager, $syncService, $cal, $card, $defaults); $hm->firstLogin($user); } @@ -145,7 +140,7 @@ class HookManagerTest extends TestCase { $card->expects($this->once())->method('getAddressBooksForUserCount')->willReturn(1); $card->expects($this->never())->method('createAddressBook'); - $hm = new HookManager($userManager, $syncService, $cal, $card, $defaults, $this->eventDispatcher); + $hm = new HookManager($userManager, $syncService, $cal, $card, $defaults); $hm->firstLogin($user); } @@ -193,7 +188,7 @@ class HookManagerTest extends TestCase { 'principals/users/newUser', 'contacts', ['{DAV:}displayname' => 'Contacts']); - $hm = new HookManager($userManager, $syncService, $cal, $card, $defaults, $this->eventDispatcher); + $hm = new HookManager($userManager, $syncService, $cal, $card, $defaults); $hm->firstLogin($user); } @@ -243,7 +238,7 @@ class HookManagerTest extends TestCase { ]); $card->expects($this->once())->method('deleteAddressBook'); - $hm = new HookManager($userManager, $syncService, $cal, $card, $defaults, $this->eventDispatcher); + $hm = new HookManager($userManager, $syncService, $cal, $card, $defaults); $hm->preDeleteUser(['uid' => 'newUser']); $hm->postDeleteUser(['uid' => 'newUser']); } |