summaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add visibility to all constantsChristoph Wurst2020-04-106-17/+17
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-1034-128/+128
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all properties and move static keywordChristoph Wurst2020-04-105-13/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20422 from ↵Christoph Wurst2020-04-10218-643/+420
|\ | | | | | | | | nextcloud/techdebt/format-control-structs-classes-methods Format control structures, classes, methods and function
| * Format control structures, classes, methods and functionChristoph Wurst2020-04-10218-643/+420
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #19495 from nextcloud/preview-generate-batchRoeland Jago Douma2020-04-101-14/+23
|\ \ | |/ |/| optimize batch generation of previews
| * fix preview generation testsRobin Appelman2020-04-101-14/+23
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Use elseif instead of else ifChristoph Wurst2020-04-1016-56/+56
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Remove space between switch case and colonChristoph Wurst2020-04-091-32/+32
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Remove trailing and in between spacesChristoph Wurst2020-04-0911-26/+26
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-0969-319/+315
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use a blank line after the opening tagChristoph Wurst2020-04-0934-12/+58
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-0962-47/+15
| | | | | | | | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix (array) indent style to always use one tabChristoph Wurst2020-04-0929-1810/+1810
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #16035 from nextcloud/share-search-hide-on-matchblizzz2020-04-091-62/+77
|\ \ | | | | | | dont show remote and email options if we have an exact match for local user email
| * | dont show remote and email options if we have an exact match for local user ↵Robin Appelman2020-04-081-62/+77
| |/ | | | | | | | | | | email Signed-off-by: Robin Appelman <robin@icewind.nl>
* / Fix multiline commentsChristoph Wurst2020-04-0819-246/+245
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move legacy classes from PSR0 to PSR4Christoph Wurst2020-04-071-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20033 from nextcloud/s3-seekable-streamRoeland Jago Douma2020-04-062-4/+20
|\ | | | | Enable fseek for files in S3 storage
| * add basic tests for s3 seeking and add some error handling if reopen return ↵Robin Appelman2020-04-012-4/+20
| | | | | | | | | | | | the wrong range Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #20139 from ↵Roeland Jago Douma2020-04-041-3/+3
|\ \ | | | | | | | | | | | | nextcloud/unify-default-value-for-restricting-user-enumeration-with-settings Unify default value for restricting user enumeration with settings
| * | Unify default value for restricting user enumeration with settingsDaniel Calviño Sánchez2020-03-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the value was never enabled or disabled, the settings show "Restrict username enumeration to groups" as disabled. However, in some components it was enabled by default, which caused an inconsistency in the behaviour with respect to the settings, for example in the contacts menu. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | fix testsRobin Appelman2020-04-011-6/+26
| |/ |/| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | [POC] Event for failed login attemptsRoeland Jago Douma2020-03-311-1/+8
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-2749-92/+0
|\ \ | | | | | | Remove unused imports
| * | Remove unused importsChristoph Wurst2020-03-2549-92/+0
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Use the short array syntax, everywhereChristoph Wurst2020-03-26107-2075/+2075
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #20172 from nextcloud/techdebt/phpunit-short-returnChristoph Wurst2020-03-2687-1251/+1251
|\ \ \ | | | | | | | | Use the shorter phpunit syntax for mocked return values
| * | | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-2587-1251/+1251
| |/ / | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / / Use lowercase true, false and null constantsChristoph Wurst2020-03-255-6/+6
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #14722 from tacruc/GpgMailerHooksRoeland Jago Douma2020-03-252-14/+69
|\ \ | | | | | | Add Mailer events
| * | Added Hook before Message is sendArne Hamann2020-03-242-14/+69
| | | | | | | | | | | | Signed-off-by: Arne Hamann <kontakt+github@arne.email>
* | | Merge pull request #20127 from nextcloud/bugfix/noid/check-user-on-remote-wipeRoeland Jago Douma2020-03-241-13/+3
|\ \ \ | |/ / |/| | Check the user on remote wipe
| * | Check the user on remote wipeJoas Schilling2020-03-161-13/+3
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Remove admin_notifications since it is obsolete since Nextcloud 14Julius Härtl2020-03-241-1/+0
| |/ |/| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #17684 from mlatief/support-no-proxyRoeland Jago Douma2020-03-221-11/+139
|\ \ | | | | | | Add support for GuzzleHTTP 'no' proxy
| * | Add support for GuzzleHTTP 'no' proxyMohammed Abdellatif2020-02-291-11/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The custom config allows to setup a proxy URI that is passed to GuzzleHTTP client as request options. Guzzle has the option to receive an array of proxies for each URI scheme as well as 'no' key value pair to provide a list of host names that should not be proxied to. Guzzle would automatically populate these options with HTTPS_PROXY and NO_PROXY environment variables. However, when providing a 'proxy' request option, default values will be overriden and it is required to explicitly provide the 'no' value if needed. More info: http://docs.guzzlephp.org/en/stable/request-options.html#proxy This commit will add support for a new config 'proxyexclude', which takes a list of host names to be excluded. It will also provide 'proxy' request option as an array instead of a string to Guzzle, and populate 'http' and 'https' URI schemes with proxy URI, and 'no' with 'proxyexclude' list. Also, if no 'proxy' is configured, it will leave out 'proxy' request option, so it won't override Guzzle default values. Sample config file includes a hint on how to explicitly sync 'proxyexclude' with NO_PROXY, and a note about default values. Signed-off-by: Mohammed Abdellatif <m.latief@gmail.com>
* | | Add tests for ContactsStore filteringJulius Härtl2020-03-201-4/+99
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Add tests for user group enumeration limitJulius Härtl2020-03-201-16/+128
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Fix recursive calls in logging via server methodsJoas Schilling2020-03-182-8/+9
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Move deprecated aliases over to new registrationRoeland Jago Douma2020-03-151-2/+3
| |/ |/| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add system config flag to manually set that a subscription is availableJulius Härtl2020-03-101-1/+17
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #19742 from nextcloud/bug/19740/add-msg-for-exceptionblizzz2020-03-021-0/+17
|\ \ | |/ |/| Add message for DoesNotExistException
| * Add message for DoesNotExistExceptionDaniel Kesselberg2020-03-021-0/+17
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | better tests for SimpleFolderRobin Appelman2020-02-281-71/+48
|/ | | | | | test behavior, not implementation Signed-off-by: Robin Appelman <robin@icewind.nl>
* Strip of users home path from share api messageJoas Schilling2020-02-201-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* when we receive intentional empty whats new info, do not try to show itArthur Schiwon2020-02-131-0/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* disable timeout on app install via cliArthur Schiwon2020-02-121-4/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* [3rdparty] Bump guzzlehttp/guzzle from 6.3.3 to 6.5.2John Molakvoæ (skjnldsv)2020-02-112-26/+26
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add Argon2id supportRoeland Jago Douma2020-02-071-18/+56
| | | | | | When available we should use argon2id for hashing. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>