diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-09-12 22:02:42 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-09-12 22:02:42 +0200 |
commit | cfa2eb7d320654911c855539c65c8b1f9b161679 (patch) | |
tree | b965721d683ef5bf92187ad0e36fa26e0039b2ad /tests | |
parent | 1145529584215a36bcd89348b6171bfcf7745044 (diff) | |
download | nextcloud-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.php | 2 |
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 |