summaryrefslogtreecommitdiffstats
path: root/tests/lib/Contacts/ContactsMenu/EntryTest.php
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2021-09-13 22:39:04 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2021-09-15 16:58:44 +0200
commit024881dbd3f5da971b92cae160db95083f04bdce (patch)
tree09287b839abee5d7d75a954529ac1057aa8e9912 /tests/lib/Contacts/ContactsMenu/EntryTest.php
parenta994ef0c4fae63b40cc0bb4ace2766b75a22ff0b (diff)
downloadnextcloud-server-024881dbd3f5da971b92cae160db95083f04bdce.tar.gz
nextcloud-server-024881dbd3f5da971b92cae160db95083f04bdce.zip
Add email addresses to contacts menu
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'tests/lib/Contacts/ContactsMenu/EntryTest.php')
-rw-r--r--tests/lib/Contacts/ContactsMenu/EntryTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/Contacts/ContactsMenu/EntryTest.php b/tests/lib/Contacts/ContactsMenu/EntryTest.php
index a8dd7fdc508..bce1865f94a 100644
--- a/tests/lib/Contacts/ContactsMenu/EntryTest.php
+++ b/tests/lib/Contacts/ContactsMenu/EntryTest.php
@@ -96,16 +96,18 @@ class EntryTest extends TestCase {
public function testJsonSerialize() {
$expectedJson = [
- 'id' => 123,
+ 'id' => '123',
'fullName' => 'Guadalupe Frisbey',
'topAction' => null,
'actions' => [],
'lastMessage' => '',
'avatar' => null,
+ 'emailAddresses' => ['user@example.com']
];
$this->entry->setId(123);
$this->entry->setFullName('Guadalupe Frisbey');
+ $this->entry->addEMailAddress('user@example.com');
$json = $this->entry->jsonSerialize();
$this->assertEquals($expectedJson, $json);