summaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #30508 from nextcloud/fix/psaml-binCarl Schwan2022-01-1318-126/+119
|\ | | | | Fix psalm not running
| * Check style updateCarl Schwan2022-01-1318-126/+119
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #30600 from nextcloud/fix/30595/idn-email-shareCarl Schwan2022-01-131-8/+50
|\ \ | | | | | | Fix idn emails not working in shares
| * | Add check before sending email that email address is validCarl Schwan2022-01-111-8/+50
| | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Merge pull request #30588 from nextcloud/bugfix/noid/fix-unset-scopesPytal2022-01-111-1/+1
|\ \ \ | |/ / |/| |
| * | Fix testJoas Schilling2022-01-111-1/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #30291 from nextcloud/image-memory-limitJoas Schilling2022-01-111-0/+17
|\ \ \ | | | | | | | | Prevent loading images that would require too much memory.
| * | | Prevent loading images that would require too much memory.Joachim Bauch2022-01-111-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For most image formats, the header specifies the width/height. PHP allocates an image object from that size, even if the actual image data is much smaller. This image object size is not limited by the limit configured in PHP. The memory limit can be configured through "config.php" setting "preview_max_memory" and defaults to 128 MBytes which should be enough for most images without filling up all memory. Signed-off-by: Joachim Bauch <bauch@struktur.de>
* | | | Streamline reseting of private static propertiesLouis Chemineau2022-01-111-2/+2
| |/ / |/| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | Revert "Streamline reseting of private static properties"Louis Chemineau2022-01-101-2/+2
| | | | | | | | | | | | This reverts commit e50121d4c05afb8eca22bc105b160283ff4181c0.
* | | Streamline reseting of private static propertiesLouis Chemineau2022-01-101-2/+2
| | | | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | Reset $scriptDeps in testsLouis Chemineau2022-01-081-0/+2
| | | | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | 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>
* | | 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-2311-17/+51
|\ | | | | Support PHP 8.1 - First batch
| * 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