summaryrefslogtreecommitdiffstats
path: root/tests/lib/Comments
Commit message (Collapse)AuthorAgeFilesLines
* Backport of format self-mentions, but don't offer them #7914Arthur Schiwon2018-01-181-2/+7
| | | | | | | | | | | | | | | | | | comments should compile mentions also if done by author 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> do not offer the handle of the current user for auto completion Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> add types to php doc Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix comment sorterArthur Schiwon2017-10-301-31/+0
| | | | | | | 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>
* AutoCompletion backendArthur Schiwon2017-10-222-23/+72
| | | | | | | | | | * 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>
* Can not insert auto increment on oracleJoas Schilling2017-08-021-25/+25
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* update FakeManagerRobin Appelman2017-03-301-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add test for getting unread comment count by folderRobin Appelman2017-03-301-76/+139
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #1738 from ↵Morris Jobke2016-10-263-6/+133
|\ | | | | | | | | nextcloud/comments-provide-displaynames-with-mentions comment mentions: show displayname not uid
| * add missing methods to test fake managerArthur Schiwon2016-10-201-0/+4
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * resolve displayname via manager and registerable resolversArthur Schiwon2016-10-191-0/+78
| | | | | | | | 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>
* | Fix DateTime comparissonRoeland Jago Douma2016-10-211-4/+4
|/ | | | | | | Datetime now returns microseconds. But if the database doesn't store those comparing them for equality most likely fails. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* emit pre-update event for commentsArthur Schiwon2016-10-121-2/+2
| | | | | | | * 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>
* Notificacations for simple @-mentioning in commentsArthur Schiwon2016-10-072-5/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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>
* 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>
* Fix getMock ManagerTestRoeland Jago Douma2016-09-131-4/+5
|
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-204-0/+812
* 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