Christoph Wurst
d9015a8c94
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 years ago
Christoph Wurst
1584c9ae9c
Add visibility to all methods and position of static keyword
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
2ee65f177e
Use the shorter phpunit syntax for mocked return values
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Morris Jobke
a1232f46ca
Remove unused methods and constants from legacy OC_API
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Morris Jobke
43e498844e
Use ::class in test mocks
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Roeland Jago Douma
87e10f9e6a
OC_OCS_Response is deprecated
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 years ago
Joas Schilling
55fc6536d3
FIx lib/ a-d
8 years ago
Lukas Reschke
e03f0542e4
Strip directory from scriptName
`\OCP\IRequest::getScriptName` will also return the directory, so if ownCloud is installed in a subfolder such as `owncloud/` it will resolve to `/owncloud/ocs/v2.php`. This made this check fail and also made it return invalid status codes.
8 years ago
Thomas Müller
2c8eaacec7
Merge headers of ocs results
9 years ago
Joas Schilling
ea4c25609d
Replace uniqid calls with $this->getUniqueID so tests pass again on windows
9 years ago
Joas Schilling
cb3a598cdb
Make root tests extend the \Test\TestCase
9 years ago
tomneedham
b00592ade5
Fix test case for api response code
10 years ago
Scrutinizer Auto-Fixer
adaee6a5a1
Scrutinizer Auto-Fixes
This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720
Enabled analysis tools:
- PHP Analyzer
- JSHint
- PHP Copy/Paste Detector
- PHP PDepend
10 years ago
Bjoern Schiessle
fc54335aff
extended test to also check the status messages
10 years ago
Thomas Müller
7e63722534
make use of data providers
10 years ago
tomneedham
5a2d700866
Fix type in unit test
10 years ago
tomneedham
959513fdc8
Add tests for OC_API::mergeResponses()
10 years ago