mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Update ContactsStoreTest.php
Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
This commit is contained in:
parent
36473a3f63
commit
47e950dbee
1 changed files with 5 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue