aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Comments/CommentTest.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-131-1/+5
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(comments): Allow mentions of federated users, groups and teams in the ↵Joas Schilling2024-02-271-29/+38
| | | | | | future Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(comments): Add a meta data column for commentsJoas Schilling2023-12-141-1/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add integration tests for groupJoas Schilling2021-10-121-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix unit testsJoas Schilling2021-02-061-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-5/+2
| | | | | | | | | | | | | | | 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 elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-8/+10
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add a unit test for guests as wellJoas Schilling2019-07-111-4/+18
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Match mentions when the username is wrapped in quotesJoas Schilling2018-11-071-2/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add another testMario Danic2018-06-081-1/+3
| | | | Signed-off-by: Mario Danic <mario@lovelyhq.com>
* Add a new regex testMario Danic2018-06-081-1/+3
| | | | Signed-off-by: Mario Danic <mario@lovelyhq.com>
* comments should compile mentions also if done by authorArthur Schiwon2018-01-171-2/+7
| | | | | | | | it is used by clients for formatting reasons, there is no reason not format the author if her handle is included in the comment body. It is unrelated to sending out notifications. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* move mention extraction to (I)Comment and report mentions via DAVArthur Schiwon2016-10-191-6/+51
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add test for setTopmostParentId and getTopmostParentIdLukas Reschke2016-09-291-0/+4
| | | | | | This wasn't tested before as proven by the coverage data. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-201-0/+121
* 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