summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-09-16 16:46:47 +0200
committerVincent Petry <pvince81@owncloud.com>2014-09-16 16:46:47 +0200
commit03f9b14a23e7ded8643a4dcadced0119b1f3ed14 (patch)
treeaa9d424ba549abaabf02e93a046b3211c50dea25 /tests
parent8ed1762dfb8b78828baade678339fcf06fdad8a3 (diff)
parent0732131cd9b4e69e57df59247658f2c71386ba6f (diff)
downloadnextcloud-server-03f9b14a23e7ded8643a4dcadced0119b1f3ed14.tar.gz
nextcloud-server-03f9b14a23e7ded8643a4dcadced0119b1f3ed14.zip
Merge pull request #11053 from owncloud/baskport-11041-stable7
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 ba4e775813b..acc2634fcaf 100644
--- a/tests/lib/connector/sabre/file.php
+++ b/tests/lib/connector/sabre/file.php
@@ -56,6 +56,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
@@ -133,6 +134,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