fix ContactsStoreTest
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
897bd5cfef
commit
f32fc97533
|
@ -161,10 +161,11 @@ class ContactsStoreTest extends TestCase {
|
||||||
$user = $this->createMock(IUser::class);
|
$user = $this->createMock(IUser::class);
|
||||||
$this->contactsManager->expects($this->once())
|
$this->contactsManager->expects($this->once())
|
||||||
->method('search')
|
->method('search')
|
||||||
->with($this->equalTo(''), $this->equalTo(['FN']))
|
->with($this->equalTo('a567'), $this->equalTo(['UID']))
|
||||||
->willReturn([
|
->willReturn([
|
||||||
[
|
[
|
||||||
'UID' => 123,
|
'UID' => 123,
|
||||||
|
'isLocalSystemBook' => false
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'UID' => 'a567',
|
'UID' => 'a567',
|
||||||
|
@ -190,17 +191,19 @@ class ContactsStoreTest extends TestCase {
|
||||||
$user = $this->createMock(IUser::class);
|
$user = $this->createMock(IUser::class);
|
||||||
$this->contactsManager->expects($this->once())
|
$this->contactsManager->expects($this->once())
|
||||||
->method('search')
|
->method('search')
|
||||||
->with($this->equalTo(''), $this->equalTo(['FN']))
|
->with($this->equalTo('darren@roner.au'), $this->equalTo(['EMAIL']))
|
||||||
->willReturn([
|
->willReturn([
|
||||||
[
|
[
|
||||||
'UID' => 123,
|
'UID' => 123,
|
||||||
|
'isLocalSystemBook' => false
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'UID' => 'a567',
|
'UID' => 'a567',
|
||||||
'FN' => 'Darren Roner',
|
'FN' => 'Darren Roner',
|
||||||
'EMAIL' => [
|
'EMAIL' => [
|
||||||
'darren@roner.au'
|
'darren@roner.au'
|
||||||
]
|
],
|
||||||
|
'isLocalSystemBook' => false
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
$user->expects($this->once())
|
$user->expects($this->once())
|
||||||
|
@ -226,17 +229,19 @@ class ContactsStoreTest extends TestCase {
|
||||||
$user = $this->createMock(IUser::class);
|
$user = $this->createMock(IUser::class);
|
||||||
$this->contactsManager->expects($this->once())
|
$this->contactsManager->expects($this->once())
|
||||||
->method('search')
|
->method('search')
|
||||||
->with($this->equalTo(''), $this->equalTo(['FN']))
|
->with($this->equalTo('a567'), $this->equalTo(['UID']))
|
||||||
->willReturn([
|
->willReturn([
|
||||||
[
|
[
|
||||||
'UID' => 123,
|
'UID' => 123,
|
||||||
|
'isLocalSystemBook' => false
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'UID' => 'a567',
|
'UID' => 'a567',
|
||||||
'FN' => 'Darren Roner',
|
'FN' => 'Darren Roner',
|
||||||
'EMAIL' => [
|
'EMAIL' => [
|
||||||
'darren@roner.au123'
|
'darren@roner.au123'
|
||||||
]
|
],
|
||||||
|
'isLocalSystemBook' => false
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
$user->expects($this->once())
|
$user->expects($this->once())
|
||||||
|
|
Loading…
Reference in New Issue