aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/tests/Controller/UsersControllerTest.php
Commit message (Collapse)AuthorAgeFilesLines
* fix: force lowercase emailsfix/lower-email-caseskjnldsv2025-07-101-2/+47
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore: run rectorrector-phpunit10Robin Appelman2025-07-011-24/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: unit testsfeat/add-user-enabled-apps-ocsJana Peper2025-06-181-0/+7
| | | | Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
* test: Migrate settings and provisioning_api to PHPUnit10tests/noid/migrate-more-apps-to-phpunit10Joas Schilling2025-05-161-88/+54
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(settings): Handle email change restriction separately from display name ↵provokateurin2025-04-021-10/+87
| | | | | | | | | change restriction Co-authored-by: provokateurin <kate@provokateurin.de> Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Louis <louis@chmn.me> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #49476 from nextcloud/ocs-user-info-quota-optimizeRobin Appelman2025-01-161-3/+10
|\ | | | | perf: use more optimized way to get user storage info in ocs user info
| * perf: use more optimized way to get user storage info in ocs user info when ↵Robin Appelman2025-01-061-3/+10
| | | | | | | | | | | | possible Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(tests): Fix getLastLogin expectation in UsersControllerTestCôme Chilliet2025-01-071-3/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix: Return timestamps in unix format rather than millisecondsCôme Chilliet2025-01-071-3/+6
| | | | | | | | Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* | fix(tests): Adapt tests to firstLogin new featureCôme Chilliet2025-01-071-0/+15
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(provisioning_api): Add tests for getDisabledUserDetailsCôme Chilliet2024-10-171-0/+125
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-48/+48
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* test: Fix testsfix/get-managers-as-subadminChristopher Ng2024-10-081-12/+8
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix: provision api's status codesfix/provisionApi-status-codesHamza Mahjoubi2024-09-301-5/+5
| | | | Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
* feat: add profile pronounsJohn Molakvoæ (skjnldsv)2024-09-171-2/+16
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-89/+89
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* test(users): Adapt tests to new admin delegation checksLouis Chemineau2024-07-221-28/+46
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore: Add SPDX headerAndy Scherzinger2024-06-021-38/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Update UsersControllerTest.phprakekniven2024-02-041-1/+1
| | | Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* fix(provisioning_api): Translate exceptions shown in the frontend + replace ↵Ferdinand Thiessen2024-02-011-22/+20
| | | | | | some deprecations Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(phonenumber): Use the newly introduced API to limit 3rdparty lib usageJoas Schilling2023-09-251-5/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(users): Store and load a user's managerChristoph Wurst2023-05-121-0/+3
| | | | | Co-Authored-By: hamza221 <hamzamahjoubi221@gmail.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(provisioning_api): Don't allow to configure the same additional email ↵Joas Schilling2023-04-261-0/+157
| | | | | | multiple times Signed-off-by: Joas Schilling <coding@schilljs.com>
* adjust tests after #36665Julien Veyssier2023-03-231-1/+7
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* Fix a few tests that were using too big int values for 32bitsCôme Chilliet2023-02-071-2/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Only expose storage location to adminsVincent Petry2023-01-131-8/+4
| | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix testsCarl Schwan2022-11-221-0/+14
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix test failure introduced in https://github.com/nextcloud/server/pull/33819Christopher Ng2022-09-161-0/+6
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix unit testsJoas Schilling2022-07-061-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix exception handling when profile data is too longJoas Schilling2022-06-091-26/+28
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add new account propertiesChristopher Ng2021-10-191-10/+84
| | | | | | | | | | | | | | - New properties - Organisation - Role - Headline - Biography - Profile Enabled property - Fix errors with building default account properties - Fix L10N factory method `getLanguage` not public error - Update tests Signed-off-by: Christopher Ng <chrng8@gmail.com>
* use specific email getter where necessaryArthur Schiwon2021-09-091-5/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix UserController tests failing because of max_quota app value not provided ↵Julien Veyssier2021-07-301-0/+27
| | | | | | by mocks Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* cleanupArthur Schiwon2021-06-301-8/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* prov api reports multiple mail as editable fieldArthur Schiwon2021-06-301-0/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* prov api reports additional emails on getUserArthur Schiwon2021-06-301-3/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #26679 from ↵blizzz2021-05-131-8/+8
|\ | | | | | | | | nextcloud/bugfix/noid/fix-unauthorized-ocs-status-in-provisioning Fix unauthorized OCS status in provisioning
| * Fix unauthorized OCS status in provisioningJoas Schilling2021-05-121-8/+8
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | provAPI to use only public API of IAccountManagerArthur Schiwon2021-05-081-13/+54
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Also check implementsAction methodJoas Schilling2021-04-271-2/+85
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only return display name as editable when the user backend allows itJoas Schilling2021-04-271-5/+30
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add property scope tests for AccountManagerVincent Petry2021-03-261-0/+3
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Enhance UsersControllerTest of provisioning API with scopesVincent Petry2021-03-261-37/+140
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Make extra user profile fields always editableVincent Petry2021-03-261-29/+3
| | | | | | | | The fields for phone number, address, website and twitter are now editable regardless whether federated sharing and the lookup server are enabled or not. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add a service to find out if a user knows another userJoas Schilling2021-03-101-0/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* LoggerInterface for provisioning API ControllersRoeland Jago Douma2021-03-021-9/+10
| | | | | | | Sweep swoop swaap swuup away with the deprecated stuff Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unit tests for searching by phone numberJoas Schilling2020-12-071-8/+41
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add an endpoint to search for accounts based on phone numberJoas Schilling2020-12-071-3/+19
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>