summaryrefslogtreecommitdiffstats
path: root/tests/lib/Contacts
Commit message (Collapse)AuthorAgeFilesLines
* composer run cs:fixCôme Chilliet2023-01-204-4/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix unit tests of the ActionProviderStoreJoas Schilling2023-01-041-12/+19
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Show local time in avatar menuJoas Schilling2023-01-041-0/+163
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix ContactsStoreTests under PHP 8.2Côme Chilliet2022-10-261-0/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update ContactsStoreTest.phpAndy Xheli2022-10-031-1/+5
| | | | Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
* Modernize contacts menuThomas Citharel2022-05-127-208/+186
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Add global profile toggle configChristopher Ng2022-03-181-5/+5
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Change origin field to appIdJoas Schilling2021-10-201-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not remove current user on findOneJohn Molakvoæ2021-10-201-14/+13
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add appName to contactsmenu action APIJohn Molakvoæ2021-10-201-0/+19
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Profile backendChristopher Ng2021-10-193-14/+38
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add email addresses to contacts menuDaniel Kesselberg2021-09-151-1/+3
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Add a setting to restrict returning a full match unless in phonebook or same ↵Joas Schilling2021-03-101-3/+90
| | | | | | group Signed-off-by: Joas Schilling <coding@schilljs.com>
* Restrict autocompletion also based on the phonebook known usersJoas Schilling2021-03-101-48/+331
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Pimp ActionProviderStoreRoeland Jago Douma2021-03-041-3/+3
| | | | | | | | | | * Fix paradoxale condition * Add types * Move away from ILogger Makes psalm happy, and thus me happy Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* use a consistent default value for sharing.maxAutocompleteResultsArthur Schiwon2020-12-151-3/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-124-30/+26
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* 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>