]> source.dussan.org Git - nextcloud-server.git/commitdiff
content size checks are not valid for LOCK
authorThomas Müller <thomas.mueller@tmit.eu>
Fri, 12 Sep 2014 20:02:42 +0000 (22:02 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Fri, 12 Sep 2014 20:02:42 +0000 (22:02 +0200)
tests/lib/connector/sabre/file.php

index f9f485a54004efcd1198865db1c42f5e49fecb74..1602c5181fe28cf0e36c8521e0179d28a5f04240 100644 (file)
@@ -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