aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Notification
Commit message (Collapse)AuthorAgeFilesLines
* fix: Adapt notifications and activity tests to new DI dependencyenh/add-rich-object-formatterCôme Chilliet2024-09-172-9/+26
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-152-40/+40
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* chore: Add SPDX headerAndy Scherzinger2024-05-135-85/+13
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* composer run cs:fixCôme Chilliet2023-01-202-2/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Increase the fair-use push limit to 1.000 usersJoas Schilling2022-11-181-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix unit testsJoas Schilling2022-08-311-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix unit testsJoas Schilling2022-08-171-41/+22
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fair use of push notificationsJoas Schilling2021-10-231-4/+82
| | | | | | | | | We want to keep offering our push notification service for free, but large users overload our infrastructure. For this reason we have to rate-limit the use of push notifications. If you need this feature, consider setting up your own push server or using Nextcloud Enterprise. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow registering NotifierServices trough IBootstrapRoeland Jago Douma2021-04-161-1/+29
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-122-19/+19
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-2/+1
| | | | | | | | | | | | | | | 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 a blank line after the opening tagChristoph Wurst2020-04-093-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-094-4/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-2/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-273-25/+38
| | | | 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>
* Keep the old method as a fallback and adjust the testsJoas Schilling2019-07-165-423/+196
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add strict type on Notifications testsJohn Molakvoæ (skjnldsv)2019-06-131-7/+42
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix "Undefined method setExpectedException()"Joas Schilling2018-01-241-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use ::class in test mocksMorris Jobke2017-10-241-25/+28
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use a php class for the definitions to avoid loading problemsJoas Schilling2016-11-091-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow rich object subjects for NotificationsJoas Schilling2016-10-201-29/+21
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add an icon to the notification APIJoas Schilling2016-10-071-0/+28
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure the primary action is always the first oneJoas Schilling2016-08-151-0/+29
|
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-203-0/+1280
* 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