Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-07-10 13:33:25 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-07-24 14:56:28 +0300
commitdd0c5e297e3190b1f4324fb2e88e08760d8d71b8 (patch)
tree3a629feffcb3f6358ea72e24b452dfdc043a0757 /apps/sharebymail/tests
parent88600f4ecf6358f5279327cc8ed8471ae7d33b2a (diff)
Store "sendPasswordByTalk" property of mail shares in the database
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/sharebymail/tests')
-rw-r--r--apps/sharebymail/tests/ShareByMailProviderTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/sharebymail/tests/ShareByMailProviderTest.php b/apps/sharebymail/tests/ShareByMailProviderTest.php
index f0d99e6026c..48b5de62146 100644
--- a/apps/sharebymail/tests/ShareByMailProviderTest.php
+++ b/apps/sharebymail/tests/ShareByMailProviderTest.php
@@ -296,6 +296,7 @@ class ShareByMailProviderTest extends TestCase {
$permissions = 1;
$token = 'token';
$password = 'password';
+ $sendPasswordByTalk = true;
$instance = $this->getInstance();
@@ -310,7 +311,8 @@ class ShareByMailProviderTest extends TestCase {
$uidOwner,
$permissions,
$token,
- $password
+ $password,
+ $sendPasswordByTalk
]
);
@@ -330,6 +332,7 @@ class ShareByMailProviderTest extends TestCase {
$this->assertSame($permissions, (int)$result[0]['permissions']);
$this->assertSame($token, $result[0]['token']);
$this->assertSame($password, $result[0]['password']);
+ $this->assertSame($sendPasswordByTalk, (bool)$result[0]['password_by_talk']);
}