summaryrefslogtreecommitdiffstats
path: root/apps/comments/tests/Unit
Commit message (Collapse)AuthorAgeFilesLines
* Update license headersChristoph Wurst2019-12-058-8/+19
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-273-17/+17
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-278-9/+9
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-221-2/+2
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update unit testsJoas Schilling2019-07-163-1/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add strict type on Notifications testsJohn Molakvoæ (skjnldsv)2019-06-131-3/+20
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Populate the mention-notification with the actual messageJoas Schilling2018-11-081-8/+71
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Redirect guests to login if they follow the link of a comment ↵Joas Schilling2018-10-021-40/+92
| | | | | | mention-notification Signed-off-by: Joas Schilling <coding@schilljs.com>
* test creating comments with numeric user idsArthur Schiwon2018-02-141-0/+187
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix unit testsMorris Jobke2017-11-271-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-064-3/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge branch 'master' into autocomplete-guiArthur Schiwon2017-11-012-21/+31
|\
| * Use ::class in test mocksMorris Jobke2017-10-242-21/+31
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | fix comment sorterArthur Schiwon2017-10-301-5/+18
| | | | | | | | | | | | | | background: we have a flat hierarchy of comments, not a tree. therefore we can also remove again the unnecessary additions. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | configurable amount of autocomplete results in commentsArthur Schiwon2017-10-271-0/+73
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | ensure that sorting is stableArthur Schiwon2017-10-221-1/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | AutoCompletion backendArthur Schiwon2017-10-221-0/+147
|/ | | | | | | | | | * introduce a Controller for requests * introduce result sorting mechanism * extend Comments to retrieve commentors (actors) in a tree * add commenters sorter * add share recipients sorter Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Get the user folder of the correct userJoas Schilling2017-03-092-45/+61
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Cleanup comment testsJoas Schilling2017-01-091-5/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adjust testsJoas Schilling2016-11-231-18/+56
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update testJoas Schilling2016-11-181-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* move mention extraction to (I)Comment and report mentions via DAVArthur Schiwon2016-10-191-129/+13
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* apply some polishArthur Schiwon2016-10-142-48/+13
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* emit pre-update event for commentsArthur Schiwon2016-10-122-34/+5
| | | | | | | * notifications can be cleaned up, no polluted DB * updating comments will re-notify users or remove notifications, depending on the message Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust wording of the notificationArthur Schiwon2016-10-081-5/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* remove notifications of deleted comments from the DBArthur Schiwon2016-10-081-6/+16
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* use different files route/controllerArthur Schiwon2016-10-071-7/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Notificacations for simple @-mentioning in commentsArthur Schiwon2016-10-075-0/+1238
(WIP) notify user when mentioned in comments Fix doc, and create absolute URL for as notification link. PSR-4 compatibility changes also move notification creation to comments app Do not notify yourself unit test for controller and application smaller fixes - translatable app name - remove doubles in mention array - micro perf optimization - display name: special label for deleted users, keep user id for users that could not be fetched from userManager Comment Notification-Listener Unit Test fix email adresses remove notification when triggering comment was deleted add and adjust tests add missing @license tags simplify NotificationsController registration appinfo simplification, php docs make string easier to translate adjust test replace dispatcher-based listeners with a registration method and interface safer to not pass optional data parameter to setSubject for marking as processed. ID and mention suffices Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> update comment Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>