aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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-241-1/+6
| | | | | | | | 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>
* | 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-206-89/+47
|/ | | | | | from OC_Util Signed-off-by: Julius Knorr <jus@bitgrid.net>
* Merge pull request #48220 from nextcloud/chore/remove-travisFerdinand Thiessen2024-09-191-5/+0
|\ | | | | chore: Remove old travis related stuff
| * chore: Remove old travis related stuffFerdinand Thiessen2024-09-191-5/+0
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | Merge pull request #48217 from nextcloud/chore/prepare-oc_repair-unit10Ferdinand Thiessen2024-09-1911-144/+598
|\ \ | |/ |/| 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-1911-144/+598
| | | | | | | | 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-1941-184/+184
| | | | 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 #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>
* | fix(tests): Remove deprecated tests for ServerTestCôme Chilliet2024-09-171-113/+7
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #47986 from cfiehe/fix_move_on_same_bucketStephan Orbaugh2024-09-173-0/+178
|\ \ | |/ |/| perf(ObjectStoreStorage): Improve (slow) move on same object bucket
| * perf(ObjectStoreStorage): Improve (slow) move on same object bucketChristoph Fiehe2024-09-163-0/+178
| | | | | | | | | | | | | | | | | | This commit fixes the issue #47856. When you upload a file into a group folder and when you use a single S3 bucket as primary storage, the final move operation hangs for a long time. In the background, Nextcloud initiates a copy-delete sequence from the bucket into the bucket, with causes a lot unnecessary overhead. Nextcloud thinks that the file must be imported to another storage and does not recognize that everything is done on the same object bucket. In that case, the import step can be completely skipped, which saves time, network bandwidth and reduces the load on the object storage. The behavior improves a lot with https://github.com/nextcloud/server/pull/46013. However, there are still some put messages that are being sent to the object storage when you use an object storage as primary storage and upload files into a group folder. Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de>
* | fix(Storage): Document getOwner() can return falseprovokateurin2024-09-171-1/+1
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | Merge pull request #48009 from ↵Côme Chilliet2024-09-169-37/+39
|\ \ | | | | | | | | | | | | nextcloud/fix/remove-references-to-deprected-storage-interface fix: Remove OCP\Files\Storage interface deprecated since version 9
| * | chore: Fix encryption test use statementCôme Chilliet2024-09-161-1/+2
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix: Fix other uses of removed Storage interfaceCôme Chilliet2024-09-162-2/+3
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix: Remove OCP\Files\Storage interface deprecated since version 9Côme Chilliet2024-09-167-34/+34
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Merge pull request #46480 from nextcloud/fix/mailer-binaryfinder-fallbackRobin Appelman2024-09-161-1/+2
|\ \ \ | |/ / |/| | fix(Mailer): Fix sendmail binary fallback
| * | fix(Mailer): Fix sendmail binary fallbackfix/mailer-binaryfinder-fallbackJosh2024-09-161-1/+2
| |/ | | | | | | | | | | feat: add debug logging to sendmail binary finder Signed-off-by: Josh <josh.t.richards@gmail.com>
* | Merge pull request #46140 from nextcloud/fix-nc-env-inclusionRobin Appelman2024-09-161-0/+7
|\ \ | | | | | | fix(config): Add missing handling for `envCache` in `getKeys()`
| * | Merge branch 'master' into fix-nc-env-inclusionfix-nc-env-inclusionRobin Appelman2024-09-16382-7838/+10018
| |\| | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | fix(config): add envCache tests for getKeys()Josh Richards2024-07-081-0/+7
| | | | | | | | | | | | Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
* | | feat: Make `CheckServerResponseTrait` public and provide as ↵feat/make-setup-check-trait-publicFerdinand Thiessen2024-09-162-0/+252
| |/ |/| | | | | | | | | | | | | | | `OCP\SetupCheck\CheckServerResponseTrait` This trait is used by other apps for creating setup checks, so we should provide it instead apps using private API. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | Merge pull request #47852 from nextcloud/sharding-code-fixesJohn Molakvoæ2024-09-161-2/+2
|\ \
| * | fix: misc code fixes around db shardingsharding-code-fixesRobin Appelman2024-09-092-14/+14
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #48008 from nextcloud/fix/entity/strict-typesKate2024-09-161-2/+7
|\ \ \
| * | | fix(Entity): Fix magic setter call for custom strong typed settersfix/entity/strict-typesprovokateurin2024-09-151-2/+7
| | | | | | | | | | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>