summaryrefslogtreecommitdiffstats
path: root/tests/lib/Mail
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated at matcher from tests/libCôme Chilliet2022-08-291-1/+1
| | | | | | Only 15 warnings left in there Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move findBinaryFinder and isFunctionEnabled away from OC_HelperCarl Schwan2022-08-231-1/+1
| | | | | | | | | | | | findBinaryFinder is now a service that is still private but with some minor optimization (remove the hasKey check). isFunctionEnabled is now in OCP\Util Both function are still keep but all internal usage in nextcloud/server were migrated to the new usage, so that we can remove it in 26 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Migrate from ILogger to LoggerInterface where needed in the testsCôme Chilliet2022-03-241-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Check style updateCarl Schwan2022-01-131-3/+3
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Set local domain for swiftmailer transportDaniel Kesselberg2021-05-311-1/+39
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Micro-optimize validation of empty email addressesChristoph Wurst2021-02-111-0/+1
| | | | | | Then we don't have to construct any validators. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-123-12/+12
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Provide the proper language to the mailerRoeland Jago Douma2020-04-162-4/+11
| | | | | | | Else we can't properly translate the footer in the recipients e-mail language. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-4/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-1/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-261-19/+19
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #20172 from nextcloud/techdebt/phpunit-short-returnChristoph Wurst2020-03-262-18/+18
|\ \ | | | | | | Use the shorter phpunit syntax for mocked return values
| * | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-252-18/+18
| |/ | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / Use lowercase true, false and null constantsChristoph Wurst2020-03-251-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Added Hook before Message is sendArne Hamann2020-03-242-14/+69
| | | | Signed-off-by: Arne Hamann <kontakt+github@arne.email>
* Mode to modern phpunitRoeland Jago Douma2019-11-273-6/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-273-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Addressing comments, array() to []Branko Kokanovic2018-12-171-2/+2
| | | | Signed-off-by: Branko Kokanovic <branko@kokanovic.org>
* Expose Swift Mailer streaming options in config, fixes #12702Branko Kokanovic2018-11-301-0/+22
| | | | Signed-off-by: Branko Kokanovic <branko@kokanovic.org>
* Add testcases for pipe modeDaniel Kesselberg2018-11-291-12/+38
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fallback to default path is sendmail can't be foundRoeland Jago Douma2018-11-021-1/+7
| | | | | | | | | | | If the sendmail binary can't be found at all we fallback to the default path. It most likely is not there but then at least a proper error message pops up. Updated the tests to also properly pass. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Swift to \Swift_Mailer as abstractionRoeland Jago Douma2018-07-041-21/+12
| | | | | | | * \Swift_Mailer handles starting the transport etc properly * Fixed tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Provide an option to disable HTML emailsMorris Jobke2018-04-162-1/+53
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix testsRoeland Jago Douma2018-03-052-3/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix email buttons for white themeMorris Jobke2017-12-111-0/+16
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix welcome text for better grammar in themed instancesMorris Jobke2017-11-091-4/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Improve text: 'you have now' -> 'you now have'Leon Klingele2017-09-081-4/+4
| | | | Signed-off-by: Leon Klingele <leon@struktur.de>
* Fix testsMorris Jobke2017-09-051-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix unit testsJoas Schilling2017-09-041-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Rename renderHTML to renderHtmlMorris Jobke2017-04-191-4/+4
| | | | | | | * fixes #4383 * improves consistency Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix translationsJoas Schilling2017-04-181-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update email template for lost password emailMorris Jobke2017-04-121-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use instance name as alt-textJoas Schilling2017-04-121-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add addBodyButton to add a single button to email templatesMorris Jobke2017-04-121-0/+38
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow to set text versions for the plain text emailMorris Jobke2017-04-111-0/+42
| | | | | | * allows different texts for HTML and text version of the email Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add IEMailTemplate to public OCP APILukas Reschke2017-04-111-11/+26
| | | | | | Also adds `\OCP\Mail\IMailer::createEMailTemplate` as helper so the functionality can easily be used within apps. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-092-14/+6
| | | | | | | | | | | | | * currently there are two ways to access default values: OCP\Defaults or OC_Defaults (which is extended by OCA\Theming\ThemingDefaults) * our code used a mixture of both of them, which made it hard to work on theme values * this extended the public interface with the missing methods and uses them everywhere to only rely on the public interface Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add support for themingLukas Reschke2017-04-071-25/+87
| | | | | | Add support for theming in generated emails and simplify API Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* New layout for welcome emailMorris Jobke2017-04-071-0/+75
| | | | | | | * thanks to @espina2 for make this nice design * the button says "Set password" if the admin didn't specified a password Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adjust the testsJoas Schilling2017-01-201-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-202-0/+306
* Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader