diff options
author | Andy Xheli <axheli@axtsolutions.com> | 2022-10-03 09:17:27 -0500 |
---|---|---|
committer | Vincent Petry (Rebase PR Action) <PVince81@users.noreply.github.com> | 2022-10-27 10:04:07 +0000 |
commit | 029a9ee39f9c3f67f7bf1c414af91e916da4ecf2 (patch) | |
tree | 9d0b2a40f151b1d1ea6636898e48c2ee0c455571 | |
parent | 053a4bdf1f4d42b60f8dc8bba8419caea94ce8dd (diff) | |
download | nextcloud-server-029a9ee39f9c3f67f7bf1c414af91e916da4ecf2.tar.gz nextcloud-server-029a9ee39f9c3f67f7bf1c414af91e916da4ecf2.zip |
Update ContactsStoreTest.php
Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
-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 bd82c203ff5..9d272c7dda4 100644 --- a/tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php +++ b/tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php @@ -141,6 +141,10 @@ class ContactsStoreTest extends TestCase { public function testGetContactsWithoutBinaryImage() { /** @var IUser|\PHPUnit\Framework\MockObject\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'])) @@ -164,7 +168,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() { |