diff options
author | Georg Ehrke <developer@georgehrke.com> | 2017-04-24 20:54:33 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2017-04-26 09:28:15 +0200 |
commit | f32fc97533a0dd1a43b132cc1ff457693434083c (patch) | |
tree | 8476f9d5e5494a53c80c05e0b55fa316b90ccd61 /tests/lib/Contacts | |
parent | 897bd5cfefde22b4bdfc6d9dd67aa3bd865af306 (diff) | |
download | nextcloud-server-f32fc97533a0dd1a43b132cc1ff457693434083c.tar.gz nextcloud-server-f32fc97533a0dd1a43b132cc1ff457693434083c.zip |
fix ContactsStoreTest
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'tests/lib/Contacts')
-rw-r--r-- | tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php b/tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php index 8ded33bce27..08da360388f 100644 --- a/tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php +++ b/tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php @@ -161,10 +161,11 @@ class ContactsStoreTest extends TestCase { $user = $this->createMock(IUser::class); $this->contactsManager->expects($this->once()) ->method('search') - ->with($this->equalTo(''), $this->equalTo(['FN'])) + ->with($this->equalTo('a567'), $this->equalTo(['UID'])) ->willReturn([ [ 'UID' => 123, + 'isLocalSystemBook' => false ], [ 'UID' => 'a567', @@ -190,17 +191,19 @@ class ContactsStoreTest extends TestCase { $user = $this->createMock(IUser::class); $this->contactsManager->expects($this->once()) ->method('search') - ->with($this->equalTo(''), $this->equalTo(['FN'])) + ->with($this->equalTo('darren@roner.au'), $this->equalTo(['EMAIL'])) ->willReturn([ [ 'UID' => 123, + 'isLocalSystemBook' => false ], [ 'UID' => 'a567', 'FN' => 'Darren Roner', 'EMAIL' => [ 'darren@roner.au' - ] + ], + 'isLocalSystemBook' => false ], ]); $user->expects($this->once()) @@ -226,17 +229,19 @@ class ContactsStoreTest extends TestCase { $user = $this->createMock(IUser::class); $this->contactsManager->expects($this->once()) ->method('search') - ->with($this->equalTo(''), $this->equalTo(['FN'])) + ->with($this->equalTo('a567'), $this->equalTo(['UID'])) ->willReturn([ [ 'UID' => 123, + 'isLocalSystemBook' => false ], [ 'UID' => 'a567', 'FN' => 'Darren Roner', 'EMAIL' => [ 'darren@roner.au123' - ] + ], + 'isLocalSystemBook' => false ], ]); $user->expects($this->once()) |