diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-09-16 16:46:47 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-09-16 16:46:47 +0200 |
commit | 03f9b14a23e7ded8643a4dcadced0119b1f3ed14 (patch) | |
tree | aa9d424ba549abaabf02e93a046b3211c50dea25 /tests | |
parent | 8ed1762dfb8b78828baade678339fcf06fdad8a3 (diff) | |
parent | 0732131cd9b4e69e57df59247658f2c71386ba6f (diff) | |
download | nextcloud-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.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 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 |