diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2021-09-13 22:39:04 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2021-09-15 16:58:44 +0200 |
commit | 024881dbd3f5da971b92cae160db95083f04bdce (patch) | |
tree | 09287b839abee5d7d75a954529ac1057aa8e9912 /tests/lib/Contacts/ContactsMenu/EntryTest.php | |
parent | a994ef0c4fae63b40cc0bb4ace2766b75a22ff0b (diff) | |
download | nextcloud-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.php | 4 |
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); |