summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* No need to check the subadmin againJoas Schilling2017-01-181-5/+0
| | | | | | | The user needs to be a subadmin of the group, otherwise they are not allowed to remove anyone from the group Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adds provisioning middleware testsRoeland Jago Douma2016-12-301-0/+122
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use new appstore APILukas Reschke2016-10-311-17/+3
| | | | | | This change introduces the new appstore API in Nextcloud. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add unit testsJoas Schilling2016-10-211-0/+382
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move Apps to OCSControllerRoeland Jago Douma2016-08-141-24/+30
|
* Move Users to OCSControllerRoeland Jago Douma2016-08-141-414/+269
|
* Move Groups over to OCSControllerRoeland Jago Douma2016-08-141-139/+58
| | | | | * Take advantage of the AppFramework * Fix tests
* Fix apps/Joas Schilling2016-07-214-12/+16
|
* Fix Warnings Provisioning APIRoeland Jago Douma2016-07-123-218/+308
| | | | | * OC_OCS_Result is deprecated * getMock is deprecated in phpunit 5.4
* Update license headersLukas Reschke2016-05-263-4/+4
|
* Move Provisioning api to PSR-4 (#24510)Joas Schilling2016-05-114-175/+192
| | | | | | | | * Move app to PSR-4 * Fix setUp method * Fix the tests
* Add provisioning api to enable and disable usersThomas Müller2016-05-021-4/+60
|
* Remove Scrutinizer Auto FixerLukas Reschke2016-03-011-1/+0
|
* Update author informationLukas Reschke2016-03-011-0/+1
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* More fixed tests :)Arthur Schiwon2016-02-091-12/+9
|
* Introduce IUser::setEMailAddress and add hook mechanismThomas Müller2016-01-201-3/+3
|
* Happy new year!Thomas Müller2016-01-124-4/+9
|
* Fix provisioning API unit testRoeland Jago Douma2016-01-081-1/+1
|
* Remove unnecessary group name validationTom Needham2016-01-081-0/+21
|
* Inject OCSClientLukas Reschke2016-01-061-14/+16
| | | | Fixes https://github.com/owncloud/core/issues/21451
* More fixes to the docsJoas Schilling2015-12-081-4/+6
|
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2015-12-071-0/+6
| | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* User IUser::getEMailAddress() all over the placeThomas Müller2015-12-021-29/+26
|
* Adding more DB groups to test suitsThomas Müller2015-11-302-4/+27
| | | | Adding more DB groups to test suits