aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove failing test that works with mocks only anywayJoas Schilling2023-02-021-41/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Migrate to Symfony MailerCôme Chilliet2023-02-022-258/+236
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* use php8.0 imagesMaxence Lange2023-01-311-1/+1
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* tests(oci): Test where statement on longtext columnJulius Härtl2023-01-311-0/+18
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> test: try with just passing the type to eq which should also cast Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #35160 from nextcloud/artonge/feat/version_naming_backendLouis2023-01-301-1/+2
|\ | | | | Allow to name a version
| * Fix hookconnector testsLouis Chemineau2023-01-261-1/+2
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | fix(tests): Fix method name in unit testsJoas Schilling2023-01-301-4/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | feat(app-framework): Add UseSession attribute to replace annotationChristoph Wurst2023-01-271-53/+100
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | feat(app-framework): Add support for global middlewaresChristoph Wurst2023-01-262-4/+36
|/ | | | | | | This allows apps to register middlewares that always register, not just for the app's own requests Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>
* Port files sharing selectorChristopher Ng2023-01-241-4/+3
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix tests failures (number of calls differed with last rebase)Côme Chilliet2023-01-241-15/+15
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix a bunch of deprecation in the phpunit for coreCarl Schwan2023-01-246-52/+51
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix broken user:setting command unit testJoas Schilling2023-01-231-1/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* composer run cs:fixCôme Chilliet2023-01-20230-461/+238
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix integrity checkJoas Schilling2023-01-201-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update test file for mimetypesCôme Chilliet2023-01-201-1/+2
| | | | 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>
* Disable unreliable acceptance testsJoas Schilling2023-01-191-398/+398
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(app framework)!: Inject services into controller methodsChristoph Wurst2023-01-182-30/+36
| | | | | | | | | | | | | | | 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>
* Fix login loop if login CSRF fails and user is not logged inChristoph Wurst2023-01-181-10/+11
| | | | | | | | | | If CSRF fails but the user is logged in that they probably logged in in another tab. This is fine. We can just redirect. If CSRF fails and the user is also not logged in then something is fishy. E.g. because Nextcloud contantly regenrates the session and the CSRF token and the user is stuck in an endless login loop. 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>
* | Focus trap contacts menu with NcHeaderMenu portChristopher Ng2023-01-131-3/+2
| | | | | | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com> Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | feat(CI): Enforce colored output for acceptance tests on drone CIJoas Schilling2023-01-131-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.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>
* Update behat and friendsDaniel Kesselberg2022-12-212-160/+177
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge branch 'master' into add-scim-json-supportStanimir Bozhilov2022-12-1961-1215/+1122
|\ | | | | 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>
| * | Merge pull request #35784 from nextcloud/chore/strict-login-controllerVincent Petry2022-12-161-4/+17
| |\ \ | | | | | | | | Make the LoginController strict
| | * | chore: Make the LoginController strictChristoph Wurst2022-12-151-4/+17
| | |/ | | | | | | | | | 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>
| * Revert "Copy to clipboard with button instead of link"Christopher Ng2022-12-141-2/+2
| | | | | | | | | | | | This reverts commit 4ffc022c8b5d2a4df3b1b1452de769c4ad27fe4f. Signed-off-by: Christopher Ng <chrng8@gmail.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