Christoph Wurst
d9015a8c94
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
il y a 3 ans
Christoph Wurst
1584c9ae9c
Add visibility to all methods and position of static keyword
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
il y a 4 ans
Christoph Wurst
2ee65f177e
Use the shorter phpunit syntax for mocked return values
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
il y a 4 ans
Morris Jobke
a1232f46ca
Remove unused methods and constants from legacy OC_API
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
il y a 6 ans
Morris Jobke
43e498844e
Use ::class in test mocks
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
il y a 6 ans
Roeland Jago Douma
87e10f9e6a
OC_OCS_Response is deprecated
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
il y a 6 ans
Joas Schilling
55fc6536d3
FIx lib/ a-d
il y a 8 ans
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.
il y a 8 ans
Thomas Müller
2c8eaacec7
Merge headers of ocs results
il y a 9 ans
Joas Schilling
ea4c25609d
Replace uniqid calls with $this->getUniqueID so tests pass again on windows
il y a 9 ans
Joas Schilling
cb3a598cdb
Make root tests extend the \Test\TestCase
il y a 9 ans
tomneedham
b00592ade5
Fix test case for api response code
il y a 10 ans
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
il y a 10 ans
Bjoern Schiessle
fc54335aff
extended test to also check the status messages
il y a 10 ans
Thomas Müller
7e63722534
make use of data providers
il y a 10 ans
tomneedham
5a2d700866
Fix type in unit test
il y a 10 ans
tomneedham
959513fdc8
Add tests for OC_API::mergeResponses()
il y a 10 ans