aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2022-08-18 13:44:46 +0200
committerAnna Larch <anna@nextcloud.com>2022-11-03 10:26:34 +0100
commite5c290bb7f7ea361feadab337bc8fe51531bb529 (patch)
tree1848c8c03234ed69b7f7c509a05d1b5a45e6c7a4 /apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php
parentbfb764b5f3a26add7059391134c86a1fca460dfd (diff)
downloadnextcloud-server-e5c290bb7f7ea361feadab337bc8fe51531bb529.tar.gz
nextcloud-server-e5c290bb7f7ea361feadab337bc8fe51531bb529.zip
Switch to DisplayNameCache for CalDAV
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php')
-rw-r--r--apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php b/apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php
index 0d8076f7aa4..0b64704a87e 100644
--- a/apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php
+++ b/apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php
@@ -183,13 +183,10 @@ class IMipPluginTest extends TestCase {
$message = $this->_testMessage();
$message->senderName = null;
- $user = $this->createMock(IUser::class);
- $user->method('getDisplayName')->willReturn('Mr. Wizard');
-
$this->userManager->expects($this->once())
- ->method('get')
+ ->method('getDisplayName')
->with('user123')
- ->willReturn($user);
+ ->willReturn('Mr. Wizard');
$this->_expectSend();
$this->plugin->schedule($message);