Côme Chilliet
8951f069fe
Require a recent phpunit version in integration and acceptance
Otherwise build with PHP>8 will fail as PHPUnit 6 does not support it
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Jonas Meurer
65cfe9df46
Add integration tests for user_status API
Signed-off-by: Jonas Meurer <jonas@freesources.org>
2 years ago
Arthur Schiwon
a0752543d8
fix small issues in UsersController handling
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2 years ago
Arthur Schiwon
285a56bd82
fix provisioning test check
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2 years ago
Arthur Schiwon
d109d4f581
prov api to be able to edit multivalue properties
- adding as usual
- deleting and scope setting via additional endpoint
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2 years ago
Dries Mys
befd0452b2
Added tests for specifying custom display name during group creation.
Signed-off-by: Dries Mys <dries.mys@my-dreams.be>
2 years ago
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2 years ago
Joas Schilling
3b6b4c8509
Add integration tests for the editable fields
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Vincent Petry
98e4ac39bc
Int tests for provisioning API scopes
Added integration tests for the scope attributes in the provisioning
API.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years ago
Christoph Wurst
d89a75be0b
Update all license headers for Nextcloud 21
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 years ago
Joas Schilling
689e3a502d
Add an integration test for the phone search API
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago
Christoph Wurst
d9015a8c94
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 years ago
Daniel Calviño Sánchez
c4c602ee80
Add integration tests for transferring files of a user with a risky name
The files:transfer-ownership performs a sanitization of users with
"risky" display names (including characters like "\" or "/").
In order to allow (escaped) double quotes in the display name the
regular expression used in the "user XXX with displayname YYY exists"
step had to be adjusted.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years ago
Morris Jobke
907d3542dc
Add integration tests for search in groups
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
3 years ago
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
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>
4 years ago
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Daniel Calviño Sánchez
de403f2f3d
Add integration test for creating room shares when Talk is not enabled
The test just ensures that the controller will gracefully reject the
creation instead of failing miserably; the integration tests when Talk
is enabled are in the Talk repository.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
5 years ago
John Molakvoæ (skjnldsv)
49d0f0c499
Fixed phpunit Test class
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
5 years ago
John Molakvoæ (skjnldsv)
3e5ea9b0a9
Return proper boolean user enabled state api
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
6 years ago
Robin Appelman
359ccbc023
Adjust integration tests to new guzzle
Signed-off-by: Robin Appelman <robin@icewind.nl>
6 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Joas Schilling
3d628783d9
Allow to change account info via provisioning api
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
4157e7914a
Fix deletion of groups
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Sergio Bertolin
aad088f3c0
Added phpdoc for getUserHome
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years ago
Sergio Bertolin
4480dca3e3
Added support for homes which doesn't have user's name
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years ago
Roeland Jago Douma
77542817d1
Fix intergration tests
* Set OCS-APIREQUEST: true
* PUT requires a body
7 years ago
Joas Schilling
0215b004da
Update with robin
7 years ago
Sergio Bertolín
271ba6da63
Added integration tests directly in the code PR
8 years ago
Thomas Müller
0eed6b5189
Integration test for a disabled user
8 years ago
Joas Schilling
4e9c3b3d64
Always use the admin when putting poeple in a group
8 years ago
Joas Schilling
26e974d859
Fix inheritance of members
8 years ago
Joas Schilling
62b77d8ed0
API version needs to be on basic because we use it there
8 years ago
Vincent Petry
11215f4e27
Return -3 for unlimited quota
Returns -3 for unlimited quota in Webdav response.
Also adjusted personal page to show unlimited quota when set.
8 years ago
Roeland Jago Douma
0f6d55063d
Make sure to login at least once for the intergration tests
Else we run into race conditions with the skeleton code
8 years ago
Morris Jobke
6baed0c998
fix code style
8 years ago
Morris Jobke
83432b3c25
add behat tests for 0 quota upload failure
8 years ago
Sergio Bertolin
9d44576819
Restructured FeatureContext to reuse some parts and run two servers in parallel
8 years ago