aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-17/+17
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* chore: Add SPDX headerAndy Scherzinger2024-05-131-21/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* test(php): Fix the unit testsBaptiste Fotia2024-01-311-0/+5
| | | | | | | | I added our context in the unit tests following the advice of Louis. Link : https://github.com/nextcloud/server/pull/43186#issuecomment-1916571027 Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
* feat(contactsmenu): Sort by user statusChristoph Wurst2023-11-081-1/+123
| | | | | | If user_status is not enabled, fall back to sorting by contact name. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix the contacts-menu vcf-contact avatarsSimon L2023-02-151-1/+1
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* 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-121-149/+138
| | | | 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>
* Do not remove current user on findOneJohn Molakvoæ2021-10-201-14/+13
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Profile backendChristopher Ng2021-10-191-1/+16
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* 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>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-17/+16
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>
* Add tests for ContactsStore filteringJulius Härtl2020-03-201-4/+99
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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>
* fix ContactsStoreTestGeorg Ehrke2017-04-261-5/+10
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* add contactsmenu popoverGeorg Ehrke2017-04-261-0/+90
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Don't show contacts an entry for themselvesChristoph Wurst2017-04-251-9/+48
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Contacts menuChristoph Wurst2017-04-251-0/+121
* load list of contacts from the server * show last message of each contact Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>