summaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/tests
Commit message (Collapse)AuthorAgeFilesLines
* Unshare from mail activity is missingJoas Schilling2018-12-041-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* OCA\ShareByMail\Capabilities unit testMasterOfDeath2018-10-311-0/+51
| | | | | | OCA\ShareByMail\Capabilities unit test Signed-off-by: Rinat Gumirov <rinat.gumirov@mail.ru>
* Honour "sendPasswordByTalk" property in mail sharesDaniel Calviño Sánchez2018-07-241-0/+156
| | | | | | | | | | | | | | | | | When a password was set for a mail share an e-mail was sent to the recipient with the password. Now the e-mail is no longer sent if the password is meant to be sent by Talk. However, before the e-mail was not sent when the share was updated but the password was not changed. Now an e-mail is sent in that case too if switching from a password sent by Talk to a password sent by mail. On the other hand, when switching from a password sent by mail to a password sent by Talk it is mandatory to change the password; otherwise the recipient would already have access to the share without having to call the sharer to verify her identity. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Store "sendPasswordByTalk" property of mail shares in the databaseDaniel Calviño Sánchez2018-07-241-1/+4
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* fix unit testsBjoern Schiessle2018-07-211-7/+11
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Use ::class in test mocks of dav appMorris Jobke2017-10-261-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-4/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Set the data from the templateJoas Schilling2017-10-181-32/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* expect call of getSlogan() exactly twiceStephan Müller2017-09-251-1/+1
| | | | | Signed-off-by: Stephan Müller <mail@stephanmueller.eu> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow the expiration date to be set to nullMorris Jobke2017-08-261-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* don't mention the owner of a file in case of a re-share by mail. The ↵Bjoern Schiessle2017-05-081-24/+8
| | | | | | recipient doesn't care about the owner and probably don't even know it Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* fix unit testsBjoern Schiessle2017-04-201-4/+4
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* respect password policy for auto generated passwordsBjoern Schiessle2017-04-201-2/+9
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow admin to enforce password on mail sharesBjoern Schiessle2017-04-202-6/+56
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Rename renderHTML to renderHtmlMorris Jobke2017-04-191-2/+2
| | | | | | | * fixes #4383 * improves consistency Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add "Reply-To" on ShareByMailProvider mailsLukas Reschke2017-04-181-2/+237
| | | | | | Fixes https://github.com/nextcloud/server/issues/4209 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Mail shares trigger the public keyRoeland Jago Douma2017-04-131-16/+16
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Adjust docs and make !$currentAccess simplerJoas Schilling2017-04-131-0/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add unit tests for sharebymail providerJoas Schilling2017-04-131-0/+55
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* update unit testsBjoern Schiessle2017-04-071-5/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* setting to disable sending password by mailBjoern Schiessle2017-04-031-1/+7
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow password protected mail sharesBjoern Schiessle2017-04-031-0/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Remove old testJoas Schilling2016-11-251-68/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add activity if a file was shared by mailBjoern Schiessle2016-11-082-5/+80
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add new method getSharesInFolder(), see #339Bjoern Schiessle2016-11-011-1/+42
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add tests for the share-by-mail providerBjoern Schiessle2016-11-011-0/+614
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* always show correct place holder, mention share by mail only if the share ↵Bjoern Schiessle2016-11-011-0/+64
provider is enabled Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>