diff options
author | Andy Xheli <axheli@axtsolutions.com> | 2022-10-03 09:17:27 -0500 |
---|---|---|
committer | Andy Xheli <axheli@axtsolutions.com> | 2022-10-03 09:17:27 -0500 |
commit | ae6a7c88a004843e0dc976a4a616ffaceea4ee1a (patch) | |
tree | 0f1bbcb7b2253a39f255c6261c513e1300bb942b /tests | |
parent | 2cff329188fc1e0a5c42a8ef3958a337d38d7981 (diff) | |
download | nextcloud-server-ae6a7c88a004843e0dc976a4a616ffaceea4ee1a.tar.gz nextcloud-server-ae6a7c88a004843e0dc976a4a616ffaceea4ee1a.zip |
Update ContactsStoreTest.php
Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
Diffstat (limited to 'tests')
-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() { |