aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core
Commit message (Collapse)AuthorAgeFilesLines
* fix: Migrate all uses of OCP\Template to OCP\Template\ITemplateManagerCôme Chilliet2025-03-061-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Replace isInstalled calls with isEnabledForAnyone or isEnabledForUserCôme Chilliet2025-02-131-1/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Remove skip of grant page, only skip first stepCôme Chilliet2025-01-071-4/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Adapt tests to added constructor parametersCôme Chilliet2025-01-071-30/+24
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #49560 from nextcloud/fix/login-originStephan Orbaugh2024-12-201-5/+23
|\ | | | | feat(login): add origin check at login
| * feat(login): add origin check at loginBenjamin Gaussorgues2024-12-051-5/+23
| | | | | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | feat(systemtags): allow setting color with occskjnldsv2024-12-061-3/+5
|/ | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat: Warn about maintenance in EncryptAll commandartonge/feat/maintenance_warn_encrypt_allLouis Chemineau2024-11-251-9/+0
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore(profile): move profile app from core to appsskjnldsv2024-11-141-78/+0
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix: Adjust preview for view-only sharesfix/view-only-previewFerdinand Thiessen2024-10-281-17/+174
| | | | | | | | | | | | | | | | | Previously there was a different behavior for public shares (link-shares) and internal shares, if the user disabled the view permission. The legacy UI for public shares simply "disabled" the context menu and hided all download actions. With Nextcloud 31 all share types use the consistent permissions attributes, which simplifies code, but caused a regression: Images can no longer been viewed. Because on 30 and before the attribute was not set, previews for view-only files were still allowed. Now with 31 we need a new way to allow "viewing" shares. So this is allowing previews for those files, but only for internal usage. This is done by settin a special header, which only works with custom requests, and not by opening the URL directly. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #48537 from nextcloud/add-command-to-cleanup-previewKate2024-10-141-0/+176
|\
| * feat(preview): add command to cleanup preview folderadd-command-to-cleanup-previewThomas Citharel2024-10-031-0/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | When changing preview parameters (size, format, …), one can simply delete the preview folder and run files:scan-app-data in order to retrigger updated preview recreation because files are absent. However, that's not possible when using ObjectStorage as primary storage, as there's no concept of "preview folder". This command allows to simply delete and recreate the preview folder properly from Nextcloud, so that the abstraction levels handle all the subfolder & file deleting part. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | test(settings): Correctly only return bool for Symfony ↵dependabot/composer/symfony-6.4Joas Schilling2024-10-071-7/+17
| | | | | | | | | | | | Input::hasParameterOption calls Signed-off-by: Joas Schilling <coding@schilljs.com>
* | test: Fix mock creationJoas Schilling2024-10-071-4/+3
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore(legacy): Introduce public version ct plass and drop version methods ↵clean/version-ocpJulius Knorr2024-09-201-11/+17
| | | | | | from OC_Util Signed-off-by: Julius Knorr <jus@bitgrid.net>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-199-27/+27
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-1563-279/+279
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-2518-78/+78
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: Fix failing test for group listingJulius Härtl2024-08-061-0/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* chore(tests): Adapt tests to the group:list changeCôme Chilliet2024-08-061-28/+32
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Ignore preview requests for invalid file idsJulius Härtl2024-07-221-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* feat: don't count failed CSRF as failed login attemptBenjamin Gaussorgues2024-07-111-1/+0
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Merge pull request #45811 from nextcloud/add-test-for-profile-page-controllerDaniel2024-06-121-0/+78
|\ | | | | test: add tests for ProfilePageController
| * test: add tests for ProfilePageControllerDaniel Kesselberg2024-06-121-0/+78
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | fix(files_sharing): dark avatar supportskjnldsv2024-06-121-2/+13
|/ | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-1368-1177/+169
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(auth): Keep redirect URL during 2FA setup and challengeChristoph Wurst2024-04-191-3/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(login): Clear login form (password) after IDLE timeoutFerdinand Thiessen2024-03-251-19/+9
| | | | | | | | | For security reasons it is recommended to stop the login process at a defined time, this could prevent password leaks by e.g. user forgetting that they entered their password on public devices. Enforced e.g. by the BSI ORP.4.A13 rule. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: update logincontroller testsEduardo Morales2024-03-101-5/+12
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* Revert change in TwoFactorAuth CleanupTest.phpLouis Chemineau2024-03-061-6/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files_versions): Improve files version listingLouis Chemineau2024-03-061-1/+6
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* add generate-password option and flow fixesAnupam Kumar2024-02-241-40/+82
| | | | Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
* new user password email option, improved on #29368Anupam Kumar2024-02-241-27/+29
| | | | Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
* Enable adding E-Mail addresses to new user accounts using the CLIPhilip Gatzka2024-02-241-0/+126
| | | | Signed-off-by: Philip Gatzka <philip.gatzka@mailbox.org>
* feat(core): Add OCS endpoint for confirming the user passwordprovokateurin2024-02-201-1/+19
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: phpunitJohn Molakvoæ2024-02-131-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* lazy AppConfigMaxence Lange2024-01-152-23/+44
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix(tests): Fix remaining testsJoas Schilling2024-01-091-1/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix tests after slow logout fixLouis Chemineau2024-01-081-1/+4
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Cancel PR #37405, remove regression codeGaspard d'Hautefeuille2024-01-051-4/+25
| | | | Signed-off-by: Gaspard d'Hautefeuille <github@dhautefeuille.eu>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-234-4/+4
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Merge pull request #39852 from nextcloud/pragmaHeaderFerdinand Thiessen2023-10-182-6/+0
|\ | | | | Stop sending deprecated Pragma header
| * Stop sending deprecated Pragma headerGit'Fellow2023-08-282-6/+0
| | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | Fix Dynamic property timeFactory in ClientFlowLoginControllerTestCôme Chilliet2023-10-091-1/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | make oauth2 authorization code expire after 10 minutesJulien Veyssier2023-10-051-1/+4
| | | | | | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* | Remove last calls to deprecated at matcher in tests/CoreCôme Chilliet2023-09-189-106/+92
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #40026 from lhsazevedo/auth-token-commandsJoas Schilling2023-08-291-0/+170
|\ \ | | | | | | feat: Add auth token list and delete commands
| * | Add tests for occ user:auth-tokens:deleteLucas Azevedo2023-08-251-0/+170
| |/ | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* / techdebt(DI): Use public IThrottler interface which exists since Nextcloud 25Joas Schilling2023-08-281-3/+3
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>