aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* test: add test for nested jail cross-storage movefix-copying-or-moving-from-shared-groupfoldersRobin Appelman2024-10-101-0/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #48610 from nextcloud/fix/usertrait/backend-initializationKate2024-10-081-0/+3
|\
| * fix(UserTrait): Fix backend initializationfix/usertrait/backend-initializationprovokateurin2024-10-081-0/+3
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | refactor(Storage): Make all parameter types strong typesprovokateurin2024-10-073-14/+12
|/ | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(Wrapper\Encryption): Migrate to strong typesrefactor/stream-encryption/typingsprovokateurin2024-10-071-109/+119
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(Stream\Encryption): Migrate to strong typesprovokateurin2024-10-071-26/+38
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* 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>
* fix(message): Fix logic of Mail testJoas Schilling2024-10-071-5/+5
| | | | 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>
* Merge pull request #47896 from nextcloud/fix/resiliant-user-removalFerdinand Thiessen2024-10-071-14/+67
|\ | | | | fix: Make user removal more resilient
| * fix: Make user removal more resilientFerdinand Thiessen2024-09-261-14/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently there is a problem if an exception is thrown in `User::delete`, because at that point the user is already removed from the backend, but not all data is deleted. There is no way to recover from this state, as the user is gone no information is available anymore. This means the data is still available on the server but can not removed by any API anymore. The solution here is to first set a flag and backup the user home, this can be used to recover failed user deletions in a way the delete can be re-tried. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | chore: always execute parse_url in preventLocalAddressbug/noid/federated-addressbook-sync-without-localaddressallowedDaniel Kesselberg2024-10-011-1/+7
| | | | | | | | | | | | This change should make it easier to spot wrong uses of the HTTP client on development setups where allow_local_remote_servers is usually true. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #48235 from nextcloud/readd-object-store-phpunitRobin Appelman2024-10-011-0/+15
|\ \ | | | | | | test: re-add object store primary storage phpunit tests
| * | test: re-add object store primary storage phpunit testsRobin Appelman2024-09-271-0/+15
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | chore: Drop unused legacy `OC_Files`Ferdinand Thiessen2024-09-281-2/+2
| | | | | | | | | | | | | | | | | | It is replaced with the Sabre `ZipFolderPlugin` and apps should use the `OCP\AppFramework\Http\StreamResponse`. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | feat(files): Make the files download action use WebDAV zip downloadFerdinand Thiessen2024-09-281-7/+7
|/ / | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* / test: Fix IStorage return typesprovokateurin2024-09-265-11/+45
|/ | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* Merge pull request #32018 from nextcloud/cleanup/event/trashbinCôme Chilliet2024-09-242-2/+17
|\ | | | | Port files trashbin events to IEventDispatcher/IEventListener
| * fix(tests): Pause trashbin for lock tests in ViewTest using rmdir and unlinkcleanup/event/trashbinCôme Chilliet2024-09-241-1/+16
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix(tests): Fix tests now that trashbin listens to events properlyCôme Chilliet2024-09-231-1/+1
| | | | | | | | | | | | | | Hooks are cleared in test bootstrap so switching to events activates them in tests. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix: gracefully parse non-standard trusted certificatesfix/gracefully-parse-trusted-certificatesRichard Steinmetz2024-09-242-1/+31
| | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | fix(rtl): Make clear that the direction is based on languagefeat/31420/bidi-backend-supportJoas Schilling2024-09-231-4/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix(rtl): Add unittest for language directionMostafa Ahangarha2024-09-231-0/+18
|/ | | | Signed-off-by: Mostafa Ahangarha <ahangarha@riseup.net>
* Merge pull request #48111 from ↵Côme Chilliet2024-09-231-1/+0
|\ | | | | | | | | nextcloud/fix/move-storage-constructor-to-specific-interface fix: Move storage constructor to specific interface
| * fix(tests): Fix test to remove call to non-existing constructorfix/move-storage-constructor-to-specific-interfaceCôme Chilliet2024-09-231-1/+0
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #48215 from nextcloud/bugfix/noid/run-all-unit-testsJoas Schilling2024-09-231-5/+1
|\ \ | | | | | | fix(tests): Fix test selection and run unit tests of DAV and user_status
| * | fix(tests): Fix test selection and run unit tests of DAV and user_statusJoas Schilling2024-09-191-5/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | fix(users): Don't crash if disabled user is missing in the databaseartonge/fix/prevent_missing_users_from_crashing_disabled_users_searchLouis Chemineau2024-09-235-30/+48
| |/ |/| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | Merge pull request #43968 from exi/custom-binary-search-pathsAndy Scherzinger2024-09-201-0/+84
|\ \ | | | | | | feat: make search path for BinaryFinder customizable.
| * | feat: make search path for BinaryFinder customizable.Reno Reckling2024-09-201-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This feature is important for nextcloud running on distributions like NixOS, where all the standard search paths do not exist. Also added tests. This fixes issue #43922 Co-authored-by: Daniel <mail@danielkesselberg.de> Signed-off-by: Reno Reckling <e-github@wthack.de>
* | | Merge pull request #47782 from nextcloud/reworkShareExceptionsGit'Fellow2024-09-201-23/+23
|\ \ \ | | | | | | | | fix(l10n): Rephrasing some exceptions to be translated
| * | | fix(l10n): Rephrasing some exceptions to be translatedGit'Fellow2024-09-201-23/+23
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: tests Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: Fix tests Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* / / chore(legacy): Introduce public version ct plass and drop version methods ↵clean/version-ocpJulius Knorr2024-09-207-100/+64
|/ / | | | | | | | | | | from OC_Util Signed-off-by: Julius Knorr <jus@bitgrid.net>
* | Merge pull request #48220 from nextcloud/chore/remove-travisFerdinand Thiessen2024-09-195-253/+0
|\ \ | | | | | | chore: Remove old travis related stuff
| * | chore: Remove old travis related stuffFerdinand Thiessen2024-09-195-253/+0
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | Merge pull request #48217 from nextcloud/chore/prepare-oc_repair-unit10Ferdinand Thiessen2024-09-1912-223/+185
|\ \ \ | |/ / |/| | chore: Cleanup and prepare `\OC\Repair\RepairMimeTypes` tests for PHPUnit 10
| * | chore: Cleanup and prepare `\OC\Repair\RepairMimeTypes` tests for PHPUnit 10chore/prepare-oc_repair-unit10Ferdinand Thiessen2024-09-1912-223/+185
| |/ | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* / chore: Cleanup and prepare some app tests for PHPUnit 10ci/noid/prepare-phpunit-10Joas Schilling2024-09-191-0/+24
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-1952-213/+213
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(Collaboration): Use non-deprecated methodsFerdinand Thiessen2024-09-191-6/+5
| | | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #48163 from nextcloud/feat/nfoJohn Molakvoæ2024-09-192-2/+3
|\ | | | | feat: add nfo file support
| * feat: add nfo file supportfeat/nfoJohn Molakvoæ (skjnldsv)2024-09-182-2/+3
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Merge pull request #48137 from nextcloud/enh/add-rich-object-formatterCôme Chilliet2024-09-183-17/+35
|\ \ | | | | | | feat: Add OCP interface to format richtext into string
| * | fix: Adapt notifications and activity tests to new DI dependencyenh/add-rich-object-formatterCôme Chilliet2024-09-173-17/+35
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | test: put parent items into cache in testsRobin Appelman2024-09-185-50/+83
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | test: fix incorrect ltrim usage in testRobin Appelman2024-09-181-2/+2
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | fix(settings): pronouns UsersControllerTestJohn Molakvoæ (skjnldsv)2024-09-181-0/+6
| |/ |/| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | fix(tests): Adapt tests to changes in RepairMimeTypesCôme Chilliet2024-09-171-3/+14
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix(tests): Fix most obvious errors in ObjectStore testsCôme Chilliet2024-09-173-56/+60
| | | | | | | | | | | | Some are still failing Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix(tests): Fix Folder testsCôme Chilliet2024-09-171-3/+22
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>