summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Return empty list if group does not have subadminsRoeland Jago Douma2015-11-161-3/+2
| | | | | | | Instead of throwing an error just return an empty list. Since that is actually what it is. Fixes #19789
* Merge pull request #20292 from owncloud/provisioning_api_group_unittestThomas Müller2015-11-161-126/+250
|\ | | | | Moved grouptest over to pure unit tests
| * Moved grouptest over to pure unit testsRoeland Jago Douma2015-11-161-126/+250
| |
* | Added unit test for new functionalityRoeland Jago Douma2015-11-121-0/+339
| |
* | enable api addUser for subadminsmichag862015-11-121-0/+42
|/ | | | * Fix existing unit tests
* Revert OCS error code change from #20135Joas Schilling2015-11-051-1/+11
|
* Drop OC_SubAdmin and replace usagesLukas Reschke2015-10-292-1182/+1820
|
* Update license headersLukas Reschke2015-10-264-4/+4
|
* [provisioning api] losen testRoeland Jago Douma2015-10-211-1/+14
| | | | | | | Since we have no control of how backends sort their list of users and we also don't want to sort yet another time the test now just checks if the correct number of elements is returned and if they are from the list of group members.
* Fix scrutinizer issuesRoeland Jago Douma2015-10-202-3/+3
| | | | | * PHPDoc * Proper array initialization
* Merge branch 'master' into api-getusers-for-subadminsmichag862015-10-133-2/+3
|\
| * update licence headers via scriptMorris Jobke2015-10-053-2/+3
| |
* | [provisioning api] Updated testsRoeland Jago Douma2015-08-261-1/+77
|/ | | | | * Test pass again * Code coverage getUsers is at 100% again
* Check for userSession->getUser() === nullRoeland Jago Douma2015-08-111-1/+1
|
* [provisioning api] Fix grouptestRoeland Jago Douma2015-08-111-1/+1
|
* [provisioning api] Test for correct displaynameRoeland Jago Douma2015-08-111-0/+3
|
* Declare fieldsRoeland Jago Douma2015-08-111-0/+9
|
* [provisioning api] Improve apps test coverageRoeland Jago Douma2015-08-111-0/+6
|