aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Adapt testsJohn Molakvoæ (skjnldsv)2021-12-021-10/+15
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #29735 from nextcloud/background-scan-one-by-oneRobin Appelman2021-12-021-20/+0
|\ | | | | find users for background scan one by one
| * fix testsRobin Appelman2021-12-021-20/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Remove unused importsJoas Schilling2021-12-021-2/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix last testsJoas Schilling2021-12-021-3/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | More test fixingJoas Schilling2021-12-012-4/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | More test fixingJoas Schilling2021-12-012-235/+6
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | More unit test adjustmentsJoas Schilling2021-12-015-881/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix testsCarl Schwan2021-12-012-424/+4
|/ | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* add method to shorten a string to given byte size to UtilsArthur Schiwon2021-11-261-0/+7
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #29432 from nextcloud/fix/support-php-8.1Vincent Petry2021-11-2319-22/+85
|\ | | | | Support PHP 8.1 - First batch
| * Fix tests and avoid PHP errors in themCôme Chilliet2021-11-238-5/+34
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Make mock config return default value to fix warningsCôme Chilliet2021-11-232-2/+25
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix TempManager test errors about passing null to is_dirCôme Chilliet2021-11-231-1/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix Encryption tests on PHP 8.1Côme Chilliet2021-11-231-2/+11
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix FolderTest calls to Mountpoint constructor with wrong typeCôme Chilliet2021-11-231-3/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix DateTime constructor calls with nullCôme Chilliet2021-11-232-4/+4
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix test class namesCôme Chilliet2021-11-232-2/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix Guzzle function callsCôme Chilliet2021-11-231-2/+2
| | | | | | | | | | | | | | Since 1.7.0 and 2.0 these functions are turned into static methods. See https://github.com/guzzle/psr7#upgrading-from-function-api Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix ArrayAccess and JsonSerializable return typesCôme Chilliet2021-11-231-1/+1
| | | | | | | | | | | | First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Improve normalizer detecting IPv4 inside of IPv6Vincent Petry2021-11-221-1/+9
| | | | | | | | | | | | | | The subnet for an IPv4 address inside of IPv6 is now returned in its IPv4 form. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Fix getting subnet of ipv4 mapped ipv6 addressesVincent Petry2021-11-221-0/+4
|/ | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #29622 from nextcloud/feat/objectstore_multibucket-shiftVincent Petry2021-11-192-17/+41
|\ | | | | Implement multibucket shift for ObjectStore
| * Implement multibucket shift for ObjectStoreJohn Molakvoæ2021-11-112-17/+41
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | Normalize directory entries in Encoding wrapperVincent Petry2021-11-171-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | Directory entry file names are now normalized in getMetaData(), getDirectoryContents() and opendir(). This makes the scanner work properly as it assumes pre-normalized names. In case the names were not normalized, the scanner will now skip the entries and display a warning when applicable. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | OC_Util: Add fallbacks to check if current locale is UTF8Naoto Kobayashi2021-11-161-2/+4
| | | | | | | | | | | | | | | | | | Using escapeshellcmd to get current locale causes error if the function is disabled. Add fallbacks to prevent the error. Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* | Add check whether escapeshellcmd behaves the same as basenameNaoto Kobayashi2021-11-151-0/+2
| | | | | | | | Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* | Fix missing setlocale with php 8Naoto Kobayashi2021-11-141-0/+8
| | | | | | | | | | | | | | | | | | When php version = 8, basename('§') does not bug even if LC_ALL is non-UTF-8 locale. This cause OC_Util::isSetLocaleWorking() to skip setlocale("C.UTF-8"). Fix it by using escapeshellcmd instead of basename. Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* | Fix unit testsJoas Schilling2021-11-121-2/+2
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add unit test for share enumeration methodJoas Schilling2021-11-091-1/+79
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move common logic to share managerJoas Schilling2021-11-091-10/+25
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #29524 from nextcloud/bugfix/noid/fix-phpunit-warningsChristoph Wurst2021-11-021-0/+1
|\ | | | | Fix missing import of ILogger
| * Fix missing import of ILoggerJoas Schilling2021-11-021-0/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Enable Avatar tests as well for PHP>=8Côme Chilliet2021-10-281-20/+0
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Revert "Do not run image tests on php8"Côme Chilliet2021-10-281-68/+0
|/ | | | | | This reverts commit d690f909284ae4bb4dee7d00318104ee76720bfa. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add an OCP for trusted domain helperJoas Schilling2021-10-281-10/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #27440 from nextcloud/is-file-handleJohn Molakvoæ2021-10-231-2/+2
|\
| * Update Testsacsfer2021-10-221-1/+1
| |
| * Tests updateacsfer2021-08-151-1/+1
| |
* | Merge pull request #29363 from nextcloud/fair-use-pushJohn Molakvoæ2021-10-233-16/+111
|\ \
| * | add check isFairUseOfFreePushService on loginVitor Mattos2021-10-231-7/+25
| | | | | | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
| * | Fair use of push notificationsJoas Schilling2021-10-232-9/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | We want to keep offering our push notification service for free, but large users overload our infrastructure. For this reason we have to rate-limit the use of push notifications. If you need this feature, consider setting up your own push server or using Nextcloud Enterprise. Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | fix populating account array with missing default valuesArthur Schiwon2021-10-221-9/+7
|/ / | | | | | | | | | | | | | | - both $userData and $defaultUserData have numeric indices - each element contains at least the name and other fields - appending the missing data array is sufficient Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #29220 from nextcloud/s3-external-listJohn Molakvoæ2021-10-221-0/+3
|\ \
| * | ciRobin Appelman2021-10-151-0/+3
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #26725 from ↵John Molakvoæ2021-10-221-0/+1
|\ \ \ | | | | | | | | | | | | nextcloud/fix-federated-scope-not-shown-when-public-addressbook-upload-is-disabled
| * | | Add missing scope to testDaniel Calviño Sánchez2021-08-181-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | Merge pull request #26347 from J0WI/clean-path-regexJohn Molakvoæ2021-10-221-5/+22
|\ \ \ \
| * | | | Cleaner normalizePath regexJ0WI2021-03-271-5/+22
| | | | | | | | | | | | | | | | | | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | | | | Merge pull request #29344 from nextcloud/dependabot/composer/doctrine/dbal-3.1.3John Molakvoæ2021-10-221-7/+3
|\ \ \ \ \