aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments/tests/Unit
Commit message (Collapse)AuthorAgeFilesLines
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-157-19/+19
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-253-4/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Move comments event handler to use proper event dispatcherJulius Härtl2024-06-261-3/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* feat(notifications): Migrate server INotifiers to new exceptionsJoas Schilling2024-06-251-5/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-277-152/+20
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat: rename users to account or personVincent Petry2024-02-131-2/+2
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* comments: Stop using a service alias for controllerjld31032023-06-192-7/+4
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Fix comments and dav tests with Notifications and Activity changesCôme Chilliet2022-12-191-18/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use user displayname cache for comment mentionsJoas Schilling2022-08-191-53/+27
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Modernize comments appCarl Schwan2022-03-161-2/+2
| | | | | | | | * Use php 7.4 typed properties * More typed methods (and replace existing php doc in some cases) * query -> get for Container Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* One more test fixValdnet2022-01-051-2/+2
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* Fix testValdnet2022-01-051-1/+1
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* Fix testValdnet2022-01-051-1/+1
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-047-12/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Move comments to initial stateRoeland Jago Douma2021-03-221-73/+0
| | | | | | | | | * Do not extend the jssettings * Just use the proper intial state * Use it in the js code as well Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-244-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-126-54/+54
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adjust apps' code to use the ContainerInterfaceChristoph Wurst2020-07-211-9/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-104-5/+3
| | | | | | | | | | | | | | | 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>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-312-0/+2
| | | | 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 shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-252-20/+20
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>