aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/tests/ShareByMailProviderTest.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-10-20 13:58:01 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-03-22 06:34:09 +0100
commit100d5d9a4707dd7f5f6572d69dd55cb3d62b955f (patch)
tree200cea3d7d942c48d308497e1e5abf78e7f38f59 /apps/sharebymail/tests/ShareByMailProviderTest.php
parentae19cb168f9d3c45964ed50d868258798edb3f55 (diff)
downloadnextcloud-server-100d5d9a4707dd7f5f6572d69dd55cb3d62b955f.tar.gz
nextcloud-server-100d5d9a4707dd7f5f6572d69dd55cb3d62b955f.zip
Add labels to mail shares
Now the email is shown on a second line if a label is set. Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/sharebymail/tests/ShareByMailProviderTest.php')
-rw-r--r--apps/sharebymail/tests/ShareByMailProviderTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/sharebymail/tests/ShareByMailProviderTest.php b/apps/sharebymail/tests/ShareByMailProviderTest.php
index fede0d225a2..bb6e7d0a353 100644
--- a/apps/sharebymail/tests/ShareByMailProviderTest.php
+++ b/apps/sharebymail/tests/ShareByMailProviderTest.php
@@ -524,6 +524,7 @@ class ShareByMailProviderTest extends TestCase {
$password = 'password';
$sendPasswordByTalk = true;
$hideDownload = true;
+ $label = 'label';
$expiration = new \DateTime();
@@ -542,6 +543,7 @@ class ShareByMailProviderTest extends TestCase {
$password,
$sendPasswordByTalk,
$hideDownload,
+ $label,
$expiration
]
);
@@ -567,6 +569,7 @@ class ShareByMailProviderTest extends TestCase {
$this->assertSame($password, $result[0]['password']);
$this->assertSame($sendPasswordByTalk, (bool)$result[0]['password_by_talk']);
$this->assertSame($hideDownload, (bool)$result[0]['hide_download']);
+ $this->assertSame($label, $result[0]['label']);
$this->assertSame($expiration->getTimestamp(), \DateTime::createFromFormat('Y-m-d H:i:s', $result[0]['expiration'])->getTimestamp());
}