aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* fix tests / mistakes made during rebaseGeorg Ehrke2018-06-271-7/+7
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Fix review & testsThomas Citharel2018-06-271-5/+8
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* New user support, provisionning api and design fixesJohn Molakvoæ (skjnldsv)2018-06-191-2/+13
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fixed testsJohn Molakvoæ (skjnldsv)2018-06-151-3/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fixed testsJohn Molakvoæ (skjnldsv)2018-05-241-2/+18
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* move log constants to ILoggerArthur Schiwon2018-04-261-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Return proper boolean user enabled state apiJohn Molakvoæ (skjnldsv)2018-04-161-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix testsRoeland Jago Douma2018-04-111-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fixed testsJohn Molakvoæ (skjnldsv)2018-04-091-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fixed testsJohn Molakvoæ (skjnldsv)2018-04-052-40/+46
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fixed testsJohn Molakvoæ (skjnldsv)2018-04-051-7/+14
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Api, return users details by groupsJohn Molakvoæ (skjnldsv)2018-04-051-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #8865 from nextcloud/ocs-groups-displaynameJoas Schilling2018-03-231-0/+31
|\ | | | | Return groups displayname in provisioning api
| * Return groups displayname in provisioning apiJohn Molakvoæ (skjnldsv)2018-03-231-0/+31
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Allow admin to create users withoutpassword by sending mail automaticallyJohn Molakvoæ (skjnldsv)2018-03-221-10/+17
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | fixup! Check if groups is array, return empty do not throwJohn Molakvoæ (skjnldsv)2018-03-191-30/+3
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Fixed tests and improved codeJohn Molakvoæ (skjnldsv)2018-03-161-28/+98
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix testsRoeland Jago Douma2018-02-272-8/+8
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix testsRoeland Jago Douma2018-01-261-3/+72
| | | | | | * Add factory for the federatedfilesharing app Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix risky tests without assertionsJoas Schilling2018-01-251-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-3/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-062-0/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocks of encryption appMorris Jobke2017-10-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-243-78/+79
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* throw 101 when an empty group string is providedArthur Schiwon2017-09-181-0/+14
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix testsRoeland Jago Douma2017-08-011-0/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some app fixes of phpstorm inspectionsRoeland Jago Douma2017-07-242-2/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add unit tests for the new codeJoas Schilling2017-06-211-0/+180
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to force a language and set it via the ocs apiJoas Schilling2017-06-211-8/+26
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't allow the user to set fields they can't seeJoas Schilling2017-06-021-2/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove dead argumentsJoas Schilling2017-04-241-21/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix similar issues with the group idJoas Schilling2017-04-241-1/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix the storage info and other checks when the user has wrong casingJoas Schilling2017-04-241-30/+78
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use RESPOND_NOT_FOUND for non existing userMorris Jobke2017-04-211-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adjust class referencesLukas Reschke2017-04-111-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-091-3/+3
| | | | | | | | | | | | | * currently there are two ways to access default values: OCP\Defaults or OC_Defaults (which is extended by OCA\Theming\ThemingDefaults) * our code used a mixture of both of them, which made it hard to work on theme values * this extended the public interface with the missing methods and uses them everywhere to only rely on the public interface Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #4244 from nextcloud/welcome-emailMorris Jobke2017-04-071-183/+55
|\ | | | | New layout for welcome email
| * Add support for themingLukas Reschke2017-04-071-183/+55
| | | | | | | | | | | | Add support for theming in generated emails and simplify API Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Allow to change account info via provisioning apiJoas Schilling2017-04-071-6/+6
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* OCS API endpoint to resend welcome messageMorris Jobke2017-02-281-0/+518
| | | | | | | | | | | | * send a POST request to ocs/v1.php/cloud/users/USERNAME/resendWelcomeMessage to trigger the welcome message to be send * fixes #3367 example curl statement: curl -i https://example.org/ocs/v1.php/cloud/users/USERNAME/welcome -H "OCS-APIRequest: true" -u admin:password -X POST Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Refactor provision api app's UserControllerTestChristoph Wurst2017-02-281-76/+67
| | | | | | | | * Replace deprecated getMock with createMock * Use createMock consistently * Use php's ::class references Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* add groups to user info outputBjoern Schiessle2017-02-091-3/+30
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* make sure that 'getCurrentUser' gets an array in order to manipulate the ↵Bjoern Schiessle2017-01-261-11/+46
| | | | | | data to match the old API Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* unify endpoints form core and the the provisioning apiBjoern Schiessle2017-01-251-2/+86
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add data from the users profile to the provisioning apiBjoern Schiessle2017-01-241-1/+50
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Allow subadmins to add people to groups via provisioning apiJoas Schilling2017-01-181-7/+142
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure subadmins can not delete users from their last subadmin groupJoas Schilling2017-01-181-0/+62
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>