Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-09-13 22:00:46 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2014-09-13 22:00:46 +0400
commit05fa947b6babc05c18e578314f17a76916b3d46d (patch)
treec0d84cc2972066b4c35ea451ba64559cf11c8eb3
parent518ed10c77081e7ecd24c1e41bf23d5794ff4de8 (diff)
parentcfa2eb7d320654911c855539c65c8b1f9b161679 (diff)
Merge pull request #11054 from owncloud/fix-unit-tests-11041-master
content size checks are not valid for LOCK
-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