aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #30378 from nextcloud/feature/accept-multiple-args-on-concatJoas Schilling2022-01-071-6/+54
|\ | | | | Accept multipe args on concat
| * Unit testsVitor Mattos2022-01-071-6/+54
| | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* | Fix email verificationChristopher Ng2022-01-061-0/+39
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | Merge pull request #29921 from ↵Joas Schilling2022-01-051-0/+4
|\ \ | |/ |/| | | | | nextcloud/feature/noid/allow-to-count-commments-with-multiple-verbs Allow to count comments with multiple verbs
| * Fix unit testsJoas Schilling2022-01-051-0/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #30393 from ↵Joas Schilling2022-01-041-0/+143
|\ \ | | | | | | | | | | | | nextcloud/feature/add-group-concat-aggregator-function Add group_concat aggregator function
| * | Add a test with integerJoas Schilling2022-01-041-4/+90
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Test with real dataJoas Schilling2022-01-031-7/+12
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Add unit testVitor Mattos2022-01-031-7/+33
| | | | | | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
| * | Add unit test and orderBy parameterVitor Mattos2022-01-031-0/+26
| | | | | | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* | | Sort app scripts topologically by its dependenciesJonas Meurer2021-12-292-15/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement a proper topological sorting algorithm. Based on the implementation by https://github.com/marcj/topsort.php Logs an error in case a circular dependency is detected. Fixes: #30278 Signed-off-by: Jonas Meurer <jonas@freesources.org>
* | | Pass username prefill through unauthenticated request redirectsJulius Härtl2021-12-291-0/+2
|/ / | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #29879 from ↵Julius Härtl2021-12-211-0/+3
|\ \ | | | | | | | | | nextcloud/bugfix/noid/sharing-enumeration-addressbooks
| * | Add integration tests for email completionJulius Härtl2021-12-081-0/+3
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Improve unit testing for Util::addScript() and Util::getScript()Jonas Meurer2021-12-201-5/+53
| | | | | | | | | | | | | | | | | | | | | | | | Instead of checking for a predefined order of the scripts, test the logic: core first, dependencies before their children, no duplicates and all scripts still listed. Signed-off-by: Jonas Meurer <jonas@freesources.org>
* | | Avoid Deprecation warning from Zip tests on PHP 8.1Côme Chilliet2021-12-161-1/+1
| | | | | | | | | | | | | | | | | | It is not allowed anymore to open an empty file as a new zip archive. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Fix PHP deprecation warning in File/ViewTestCôme Chilliet2021-12-161-1/+4
|/ / | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | 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>