aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix external storages accessszaimen2022-07-011-3/+1
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Merge pull request #32960 from nextcloud/fix/avoid-using-undeclared-propertiesCôme Chilliet2022-06-281-0/+2
|\ | | | | Fix PHP 8.2 warnings about undeclared properties
| * Fix PHP 8.2 warnings about undeclared propertiesCôme Chilliet2022-06-211-0/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #32998 from nextcloud/fix/setting_nameLouis2022-06-271-1/+1
|\ \ | | | | | | Rename setting name to reduce its length
| * | Rename setting name to reduce its lengthLouis Chemineau2022-06-271-1/+1
| | | | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | Merge pull request #32863 from nextcloud/feature/add-comments-expire-dateblizzz2022-06-242-1/+52
|\ \ \ | |/ / |/| | Add comments expire date
| * | Follow the most common pattern used in projectVitor Mattos2022-06-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` git grep strval|wc -l 32 git grep "(string)"|wc -l 481 ``` Signed-off-by: Vitor Mattos <vitor@php.rio>
| * | Add comments expire dateVitor Mattos2022-06-152-1/+52
| | | | | | | | | | | | | | | | | | https://github.com/nextcloud/spreed/pull/7327 Signed-off-by: Vitor Mattos <vitor@php.rio>
* | | Merge pull request #32242 from nextcloud/fix-logging-data-arrayblizzz2022-06-212-11/+52
|\ \ \ | |_|/ |/| | Fix logging data context to file
| * | Fix logging data context to fileThomas Citharel2022-05-022-11/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was only logged when an exception was provided or when using logData (which is not being much used). We make sure the interpolated parameters are not logged. Only tested with file write logger, but shouldn't work differently. Crash reporters always had the context. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | Merge pull request #32868 from ↵blizzz2022-06-211-0/+7
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/fix/replace-opis-closure-by-laravel-fork Replace opis/closure by laravel/serializable-closure
| * | | Add a test about unserializing data from opis/closure serializationCôme Chilliet2022-06-201-0/+7
| | |/ | |/| | | | | | | | | | | | | We need to be able to unserialize data from before upgrade. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Merge pull request #32901 from nextcloud/fix/remove-at-matcher-in-lib-testsCôme Chilliet2022-06-2118-966/+872
|\ \ \ | | | | | | | | Remove at matcher uses in tests/lib
| * | | Remove some more at matchers in tests/libCôme Chilliet2022-06-209-405/+350
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Remove at matcher uses in tests/libCôme Chilliet2022-06-169-561/+522
| |/ / | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Fix email shares not being shown to other usersRichard Steinmetz2022-06-171-0/+312
| | | | | | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | | make placeholder a const for reuseArthur Schiwon2022-06-161-1/+1
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | fix overwriting original vars when loggingArthur Schiwon2022-06-161-1/+2
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | add serializer testArthur Schiwon2022-06-161-0/+67
|/ / | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #31966 from nextcloud/unencrypted-sizeVincent Petry2022-06-133-3/+24
|\ \ | | | | | | store unencrypted size in the unencrypted_size column
| * | store unencrypted size in the unencrypted_size columnRobin Appelman2022-06-022-3/+7
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | add case statement to sql function builderRobin Appelman2022-06-021-0/+17
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Keep non default protocol in cloud idJoas Schilling2022-06-091-53/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | When there is no protocol on the cloud id, we assume it's https:// But this means that when an http:// server currently sends an OCM invite to another server, the protocol is striped and the remote instance will try to talk back to https:// which might not be available. Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #32697 from nextcloud/fix/get-avatar-authzPytal2022-06-081-5/+28
|\ \ \
| * | | Test all scopesChristopher Ng2022-06-071-5/+8
| | | | | | | | | | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
| * | | Fix get avatar authorizationChristopher Ng2022-06-071-0/+20
| | | | | | | | | | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | | | Simlify tests for integrity check on modified mimetype listsJulius Härtl2022-06-071-252/+32
| |/ / |/| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Add unit tests for encryption's isSystemWideMountPointVincent Petry2022-06-011-0/+41
|/ / | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Merge pull request #32667 from nextcloud/followup/32655/fix-testsblizzz2022-05-311-12/+30
|\ \ | | | | | | Fix unit tests
| * | Fix unit testsJoas Schilling2022-05-311-12/+30
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #32587 from nextcloud/bugfix/noid/improve-jsconfighelperJoas Schilling2022-05-311-72/+52
|\ \ \ | |/ / |/| | Improve JSConfigHelper code quality a bit
| * | Restore old behaviour of sending flase for not found appsJoas Schilling2022-05-301-72/+52
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Use JSON_THROW_ON_ERROR instead of custom error handlingJulius Härtl2022-05-301-3/+3
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Merge pull request #31948 from nextcloud/core-cleanup-74Carl Schwan2022-05-301-2/+1
|\ \ \ | |/ / |/| | Update core to PHP 7.4 standard
| * | Update core to PHP 7.4 standardCarl Schwan2022-05-201-2/+1
| | | | | | | | | | | | | | | | | | | | | - Typed properties - Port to LoggerInterface Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Merge pull request #32378 from nextcloud/fix/psalm-userbackendCarl Schwan2022-05-231-2/+2
|\ \ \ | |/ / |/| | Fix psalm issues related to the user backend
| * | Fix psalm issues related to the user backendCarl Schwan2022-05-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Reflect the actual return value returned by the implementation in the the interface. E.g. IUser|bool -> IUser|false - Remove $hasLoggedIn parameter from private countUser implementation. Replace the two call with the equivalent countSeenUser - getBackend is nuallable, add this to the interface - Use backend interface to make psalm happy about call to undefined methods. Also helps with getting rid at some point of the old implementActions Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Merge pull request #26813 from nextcloud/feature/files-search-tagsSimon L2022-05-181-1/+1
|\ \ \ | | | | | | | | Files: Extend search to also cover tags
| * | | Files: Extend search to also cover tagsMarcel Klehr2022-05-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | fixes #326 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | | | Allow to tweak default scopes for accountsThomas Citharel2022-05-161-33/+71
| | | | | | | | | | | | | | | | | | | | | | | | Close #6582 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | | Merge pull request #32305 from nextcloud/bugfix/32302/fix-browser-agent-trimmingJoas Schilling2022-05-161-2/+7
|\ \ \ \ | | | | | | | | | | Fix user agent trimming on installation
| * | | | Fix user agent trimming on installationJoas Schilling2022-05-091-2/+7
| |/ / / | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #31662 from nextcloud/modernize-contactmenuJohn Molakvoæ2022-05-137-208/+186
|\ \ \ \
| * | | | Modernize contacts menuThomas Citharel2022-05-127-208/+186
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | | | Remove SCSSCacherJohn Molakvoæ2022-05-133-545/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | | | | Merge pull request #30863 from nextcloud/performance/saving-user-profile-infoCarl Schwan2022-05-131-6/+3
|\ \ \ \ \ | | | | | | | | | | | | Minor optimizations for saving user personal information
| * | | | | Minor optimizations for saving user personal informationCarl Schwan2022-05-121-6/+3
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove double hook: the OC_User::changeUser triggers an OC\AccountManager::userUpdated and the app is already listening to this signal in its Application definition * Make createCard not check if an card exists if we already checked previously. We also don't try to get the card if the user is disabled as we don't use the card in this case We this change we go from 100 DB requests to 80 DB requests when saving an user email address. Signed-off-by: Carl Schwan <carl@carlschwan.eu> (cherry picked from commit c6fd482edf33214a9ad4787e4cac278f871fa7c8)
* | | | | Merge pull request #32250 from nextcloud/cleanup/cappedmemorycacheJohn Molakvoæ2022-05-131-1/+2
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Add stricter psalm type for CappedMemoryCacheCarl Schwan2022-05-121-1/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | | | Merge pull request #32077 from nextcloud/cleanup/lockCarl Schwan2022-05-122-4/+2
|\ \ \ \ \ | |_|/ / / |/| | | | Cleanup lock related code