summaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* perf(app-framework): Make the app middleware registration lazyChristoph Wurst2023-01-252-18/+47
| | | | | | | | | Before this patch, app middlewares were registered on the dispatcher for every app loaded in a Nextcloud process. With the patch, only middlewares belonging to the same app of a dispatcher instance are loaded. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* composer run cs:fixCôme Chilliet2023-01-20163-259/+94
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix gzip mimetype mappingCôme Chilliet2023-01-201-2/+2
| | | | | | PHP now detects it as application/gzip and not application/x-gzip anymore Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove workarounds specific to 7.4Côme Chilliet2023-01-201-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(app framework)!: Inject services into controller methodsChristoph Wurst2023-01-181-10/+19
| | | | | | | | | | | | | | | Usually Nextcloud DI goes through constructor injection. This has the implication that each instance of a class builds the full DI tree. That is the injected services, their services, etc. Occasionally there is a service that is only needed for one controller method. Then the DI tree is build regardless if used or not. If services are injected into the method, we only build the DI tree if that method gets executed. This is also how Laravel allows injection. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #36073 from nextcloud/fix/fix-background-job-listblizzz2023-01-162-2/+7
|\ | | | | Use a Generator for job list to fix background-job:list command
| * Fix API breakage by using a new method insteadCôme Chilliet2023-01-122-2/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix BackgroundJob list testsCôme Chilliet2023-01-121-1/+6
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | spaces are allowed in useridsSimon L2023-01-101-9/+9
|/ | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* Remove unused legacy ajax/list.php in files appVincent Petry2023-01-092-7/+4
| | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Merge pull request #33898 from nextcloud/fix/authtoken-password-updateJulius Härtl2023-01-051-0/+2
|\ | | | | PublickKeyTokenProvider: Fix password update routine with password hash
| * PublickKeyTokenProvider: Fix password update routine with password hashMarcel Klehr2023-01-041-0/+2
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | Fix unit tests of the ActionProviderStoreJoas Schilling2023-01-041-12/+19
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Show local time in avatar menuJoas Schilling2023-01-041-0/+163
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | refactor AutoSubmittedValue to Headers\AutoSubmitted and addingBennet Becker2023-01-031-7/+7
| | | | | | | | | | | | header name to constants Signed-off-by: Bennet Becker <dev@bennet.cc>
* | fix static-analysis error and formatting codeBennet Becker2022-12-231-39/+4
| | | | | | | | Signed-off-by: Bennet Becker <dev@bennet.cc>
* | fix getAutoSubmitted return type and adding unit testsBennet Becker2022-12-231-0/+142
|/ | | | Signed-off-by: Bennet Becker <bbecker@pks.mpg.de>
* increase preview_max_memory and make it easier to debugSimon L2022-12-221-2/+2
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* Merge branch 'master' into add-scim-json-supportStanimir Bozhilov2022-12-1950-984/+1002
|\ | | | | Signed-off-by: Stanimir Bozhilov <stanimir.bozhilov.1998@gmail.com>
| * Merge pull request #35780 from ↵Vincent Petry2022-12-161-7/+14
| |\ | | | | | | | | | | | | nextcloud/fix/http-dispatcher-double-parameter-cast Fix missing cast of double controller parameters
| | * fix(app framework): Fix missing cast of double controller parametersChristoph Wurst2022-12-151-7/+14
| | | | | | | | | | | | | | | | | | ``settype`` allows 'double' as alias of 'float'. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * | check if params given to API are really an arrayArtur Neumann2022-12-151-2/+13
| |/ | | | | | | Signed-off-by: Artur Neumann <artur@jankaritech.com>
| * Merge pull request #34477 from ↵Joas Schilling2022-12-091-0/+7
| |\ | | | | | | | | | | | | nextcloud/bugfix/noid/sharee-recommendations-show-group-id Show group name instead of group id as recommendation
| | * Adjust unit testsJoas Schilling2022-10-121-0/+7
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Drop 3rdparty root since it is unused and adjust testsJulius Härtl2022-12-072-17/+18
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Cache available languages locallyJulius Härtl2022-12-072-2/+10
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Merge pull request #35649 from nextcloud/bugfix/object-storage-master-key-encJulius Härtl2022-12-071-9/+11
| |\ \ | | | | | | | | Update the unencrypted file size when closing streams
| | * | Also update the unencrypted size of files when creating them with empty contentJulius Härtl2022-12-071-9/+11
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | | Merge pull request #35620 from nextcloud/fix/fix-calendar-imip-testsJulius Härtl2022-12-071-4/+11
| |\ \ \ | | |/ / | |/| |
| | * | Fix errors in calendar tests saying function handleIMipMessage does not ↵Côme Chilliet2022-12-061-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | exists on ICreateFromString Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | use bruteforce protection on all methods wrapped by PublicShareMiddlewareJulien Veyssier2022-12-071-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | if an invalid token is provided or when share password is wrong Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
| * | | Merge pull request #35596 from nextcloud/fix/move-to-ocp-timedjobCôme Chilliet2022-12-061-3/+7
| |\ \ \ | | |/ / | |/| | Use TimedJob from OCP instead of OC
| | * | Adapt tests to new job constructorsCôme Chilliet2022-12-051-3/+7
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Fix codestyle in modified filesCôme Chilliet2022-12-051-3/+0
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Merge branch 'master' into tests/fix-phpunit-warningsCôme Chilliet2022-12-0511-68/+123
| |\| | | | | | | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| | * | Fix test image default qualityJ0WI2022-12-041-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
| | * | Add group display name cacheAnna Larch2022-11-281-29/+33
| | | | | | | | | | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
| | * | Fix testsCarl Schwan2022-11-221-0/+39
| | | | | | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| | * | Increase the fair-use push limit to 1.000 usersJoas Schilling2022-11-181-4/+4
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| | * | getAppValue expects stringJohn Molakvoæ2022-11-171-1/+1
| | | | | | | | | | | | | | | | Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| | * | Tests adjustementGit'Fellow2022-11-161-1/+1
| | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
| | * | Fix some more problems with tests under PHP 8.2Côme Chilliet2022-11-151-12/+14
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| | * | Add Union types for properties in tests/lib/Encryption/Keys/StorageTest.phpCôme Chilliet2022-11-151-3/+3
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| | * | Fix syntax in VerificationTokenTest.phpCôme Chilliet2022-11-151-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| | * | Fix errors from PHP 8.2 testingCôme Chilliet2022-11-141-2/+4
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| | * | Fix dynamic properties and other problems in tests for PHP 8.2Côme Chilliet2022-11-144-18/+26
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| | * | Fix PublicKeyTokenProviderTest import and mockChristoph Wurst2022-11-101-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * IDBConnection import missing * Atomic doesn't need a mock Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * | | Attempt to fix CalendarImpl testsJulius Härtl2022-11-091-0/+2
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | | Fix some phpunit test warningsJulius Härtl2022-11-091-3/+1
| |/ / | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Limit-number-of-concurrent-preview-generationsszaimen2022-11-051-2/+7
| | | | | | | | | | | | | | | Signed-off-by: Bowen Ding <dbw9580@live.com> Signed-off-by: szaimen <szaimen@e.mail.de>