aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/tests/Controller
Commit message (Collapse)AuthorAgeFilesLines
* 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 errors from PHP 8.2 testingCôme Chilliet2022-11-141-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* 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>
* Remove OCP\App and OCP\BackgroundJobCarl Schwan2022-08-011-1/+1
| | | | | | | | | | Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* 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>
* Add support for Delegation Settings for more appsCarl Schwan2021-10-151-1/+38
| | | | | | | | | * This adds support for the sharing, groupware, theming and user_ldap app * This adds some code who disapeared during a rebase in the initial delegation PR (provisioning_api) Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* 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>
* Effectively return a valid group as it would be the case in a realDries Mys2021-06-051-2/+6
| | | | | | | situation. Returned group object is now used to set the displayname if provided. Signed-off-by: Dries Mys <dries.mys@my-dreams.be>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-044-7/+4
| | | | 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-082-31/+56
|/ | | | 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-022-12/+13
| | | | | | | 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>
* Make code strictJoas Schilling2020-12-072-28/+30
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #23189 from nextcloud/enhancement/cs/binary_operator_spacesMorris Jobke2020-10-051-1/+1
|\ | | | | Format code to a single space around binary operators
| * Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix the user email issue while creating a userSujith Haridasan2020-10-051-1/+5
|/ | | | | | | | | When the user is created, the provisioning api was not adding the email address of the user when provided if the `send email to new user` is not set. Signed-off-by: Sujith Haridasan <sujith.h@gmail.com>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-123-32/+31
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Generate password on addUser by password_policy appDaniel Kesselberg2020-08-091-1/+50
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Use IBootstrap for the app federatedfilesharingMorris Jobke2020-07-141-16/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use the new method everywhereJoas Schilling2020-07-032-37/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix languages empty arrayGretaD2020-05-081-46/+61
| | | | Signed-off-by: GretaD <gretadoci@gmail.com>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix php-cs formattingChristoph Wurst2020-04-141-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add tests for encoded group idJulius Härtl2020-04-111-10/+74
| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-104-14/+7
| | | | | | | | | | | | | | | 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>
* Use elseif instead of else ifChristoph Wurst2020-04-101-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-092-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>