summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/tests
Commit message (Collapse)AuthorAgeFilesLines
* Also check implementsAction methodJoas Schilling2021-04-281-2/+85
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only return display name as editable when the user backend allows itJoas Schilling2021-04-281-5/+30
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Capability for federated scopeVincent Petry2021-03-291-0/+92
| | | | | | | | | Added additional capability in the provisioning API to signal whether the federation scope values can be used. This is based on whether the lookup server upload is enabled or not. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add property scope tests for AccountManagerVincent Petry2021-03-291-0/+3
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Enhance UsersControllerTest of provisioning API with scopesVincent Petry2021-03-291-37/+140
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Make extra user profile fields always editableVincent Petry2021-03-291-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-111-0/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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-243-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-124-33/+32
| | | | | | \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-106-16/+8
| | | | | | | | | | | | | | | 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>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-092-2/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-092-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-314-1/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-263-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-252-361/+361
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-056-7/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-275-249/+253
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-276-7/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-223-6/+7
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move settings to an appChristoph Wurst2019-09-281-1/+1
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Only prevent disabling encrytion via the APIJoas Schilling2019-07-161-14/+19
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update testsRoeland Jago Douma2019-07-091-4/+13
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* changes the returned key from UserID to id, in accordance with getUserDataArthur Schiwon2019-06-211-6/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* uses "yes" and "no" for config switch over stringified numbersArthur Schiwon2019-06-211-3/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* makes users management page aware of the introduced optionsArthur Schiwon2019-06-191-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* extends Provisioning API with optional userid and required emailArthur Schiwon2019-06-191-4/+155
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fixes misunderstanding of the error messageArthur Schiwon2019-05-161-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Check if password can be changed for the users backend in OCS apiJulius Härtl2019-03-051-0/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Expose subadmin to OCPRoeland Jago Douma2019-01-291-76/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* ignore non existing users when retrieving details of group membersArthur Schiwon2019-01-171-8/+76
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* do not offer to change display name or password, if not possible.Arthur Schiwon2018-11-071-4/+43
| | | | | | Fixes #12319 Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Get l10n within NewUserMailHelper to ensure it always uses the new user's ↵zulan2018-10-151-66/+3
| | | | | | | | | language. Some related tests had to be changed because they relied on internals, see also from the PHPUnit documentation: "Exercise caution when using [the at] matcher as it can lead to brittle tests which are too closely tied to specific implementation details." Signed-off-by: Zulan <git@zulan.net>
* Add optional "displayName" parameter to add user endpointDaniel Calviño Sánchez2018-07-311-7/+64
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>