summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-09-12 22:02:42 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-09-12 22:02:42 +0200
commitcfa2eb7d320654911c855539c65c8b1f9b161679 (patch)
treeb965721d683ef5bf92187ad0e36fa26e0039b2ad /tests
parent1145529584215a36bcd89348b6171bfcf7745044 (diff)
downloadnextcloud-server-cfa2eb7d320654911c855539c65c8b1f9b161679.tar.gz
nextcloud-server-cfa2eb7d320654911c855539c65c8b1f9b161679.zip
content size checks are not valid for LOCK
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/connector/sabre/file.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/connector/sabre/file.php b/tests/lib/connector/sabre/file.php
index f9f485a5400..1602c5181fe 100644
--- a/tests/lib/connector/sabre/file.php
+++ b/tests/lib/connector/sabre/file.php
@@ -55,6 +55,7 @@ class Test_OC_Connector_Sabre_File extends PHPUnit_Framework_TestCase {
->will($this->returnValue(123456));
$_SERVER['CONTENT_LENGTH'] = 123456;
+ $_SERVER['REQUEST_METHOD'] = 'PUT';
$info = new \OC\Files\FileInfo('/test.txt', null, null, array(
'permissions' => \OCP\PERMISSION_ALL
@@ -131,6 +132,7 @@ class Test_OC_Connector_Sabre_File extends PHPUnit_Framework_TestCase {
->will($this->returnValue(123456));
$_SERVER['CONTENT_LENGTH'] = 12345;
+ $_SERVER['REQUEST_METHOD'] = 'PUT';
$info = new \OC\Files\FileInfo('/test.txt', null, null, array(
'permissions' => \OCP\PERMISSION_ALL