aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix(appinfo): Make sure screenshot, author and category are always arraysbugfix/exception-appscreenshot-notstringJoas Schilling2024-10-281-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(entity): Fix mapping of old/sub-types to actually supported database typesfollowup/47329/add-all-types-to-handlingJoas Schilling2024-10-231-5/+39
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #47329 from nextcloud/feat/add-datetime-qbmapper-supportFerdinand Thiessen2024-10-187-50/+243
|\ | | | | feat(AppFramework): Add full support for date / time / datetime columns
| * fix: Prevent breaking change in IQueryBuilderFerdinand Thiessen2024-10-175-13/+13
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * feat(AppFramework): Add full support for date / time / datetime columnsFerdinand Thiessen2024-10-175-44/+237
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for all Doctrine supported types, for the column types only the immutable variants needed to be added. But especially those types are the important ones, as our **Entity** class works by detecting changes through setters. Meaning if it is mutable, changes like `$entity->date->modfiy()` can not be detected, so the immutable types make more sense here. Similar the parameter types needed to be added. `Enity` and `QBMapper` needed to be adjusted so they support (auto map) those types, required when insert or update an entity. Also added more tests, especially to make sure the mapper really serializes the values correctly. 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>
* | fix(comments): Add test for email mentionfeat/noid/support-email-mentionsJoas Schilling2024-10-181-0/+6
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #48673 from nextcloud/fix/null-labelFerdinand Thiessen2024-10-141-0/+34
|\ | | | | fix(share): Return empty string if no label is set
| * fix(share): Return empty string if no label is setFerdinand Thiessen2024-10-141-0/+34
| | | | | | | | | | | | | | | | | | * Resolves: https://github.com/nextcloud/server/issues/48629 While the database supports NULL, the typing has always said it only returns *string*. So to not break any apps that might trust the typings we should return `''` if the database is set to `NULL`. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix: Shipped apps should include the Nextcloud version in the cache busterfix/shipped-app-versionFerdinand Thiessen2024-10-141-0/+84
|/ | | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* 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>
* fix(message): Fix logic of Mail testJoas Schilling2024-10-071-5/+5
| | | | 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>
* | 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>