summaryrefslogtreecommitdiffstats
path: root/tests/lib/Contacts/ContactsMenu
Commit message (Collapse)AuthorAgeFilesLines
* Format control structures, classes, methods and functionChristoph Wurst2020-04-106-7/+0
| | | | | | | | | | | | | | | 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>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-093-13/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>
* | Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-1/+0
|\ \ | | | | | | Remove unused imports
| * | Remove unused importsChristoph Wurst2020-03-251-1/+0
| |/ | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-4/+4
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add tests for ContactsStore filteringJulius Härtl2020-03-201-4/+99
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Do not encode contacts menu mailto linksChristoph Wurst2020-01-281-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-277-7/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not try to autoload built in typesRoeland Jago Douma2019-06-041-3/+3
| | | | | | | | This avoids calls to the autoloader (or chain of autoloaders) to see if for example 'principalPrefix' class can be found. While we already know it is a string. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Respect sharing enumeration config in contacts menuJulius Härtl2019-04-181-1/+80
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix risky tests without assertionsJoas Schilling2018-01-251-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Require PHPUnit 6.5 or higherJoas Schilling2018-01-241-2/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add filter for `shareapi_allow_share_dialog_user_enumeration`Lukas Reschke2017-09-151-32/+125
| | | | | | | | This adjusts the contacts menu to also support searching by email address which is relevant in scenarios where no UID is known such as LDAP, etc. Furthermore, if `shareapi_allow_share_dialog_user_enumeration` is disabled only results are shown that match the full user ID or email address. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add testsTobia De Koninck2017-09-151-0/+129
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Fix testsTobia De Koninck2017-09-151-1/+19
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Do not show an email action for contacts with emtpy email addressesChristoph Wurst2017-05-021-0/+24
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix ContactsStoreTestGeorg Ehrke2017-04-261-5/+10
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* add contactsmenu popoverGeorg Ehrke2017-04-262-0/+135
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Adjust entry unit test to newly added avatar propertyChristoph Wurst2017-04-251-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use absolute URI for action iconsChristoph Wurst2017-04-251-3/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't show contacts an entry for themselvesChristoph Wurst2017-04-252-10/+49
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Let apps register contact menu provider via info.xmlChristoph Wurst2017-04-252-8/+62
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Contacts menuChristoph Wurst2017-04-257-0/+642
* load list of contacts from the server * show last message of each contact Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>