diff options
author | Andy Xheli <axheli@axtsolutions.com> | 2022-10-03 09:17:27 -0500 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-10-05 08:42:09 +0000 |
commit | 47e950dbee1407ec3323fed25237ecd0842f1b8b (patch) | |
tree | 04b47d7db60533ee3d0a5a32cfb061311f35ff1b /tests/lib | |
parent | 36473a3f63a4e8485344666124bf142050593fa7 (diff) | |
download | nextcloud-server-47e950dbee1407ec3323fed25237ecd0842f1b8b.tar.gz nextcloud-server-47e950dbee1407ec3323fed25237ecd0842f1b8b.zip |
Update ContactsStoreTest.php
Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php b/tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php index aa609aedbb9..dfdd67fbb23 100644 --- a/tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php +++ b/tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php @@ -140,6 +140,10 @@ class ContactsStoreTest extends TestCase { public function testGetContactsWithoutBinaryImage() { /** @var IUser|MockObject $user */ $user = $this->createMock(IUser::class); + $this->urlGenerator->expects($this->any()) + ->method('linkToRouteAbsolute') + ->with('core.avatar.getAvatar', $this->anything()) + ->willReturn('https://urlToNcAvatar.test'); $this->contactsManager->expects($this->once()) ->method('search') ->with($this->equalTo(''), $this->equalTo(['FN', 'EMAIL'])) @@ -163,7 +167,7 @@ class ContactsStoreTest extends TestCase { $entries = $this->contactsStore->getContacts($user, ''); $this->assertCount(2, $entries); - $this->assertNull($entries[1]->getAvatar()); + $this->assertSame('https://urlToNcAvatar.test', $entries[1]->getAvatar()); } public function testGetContactsWithoutAvatarURI() { |