[Pkg-owncloud-commits] [owncloud] 70/258: content size checks are not valid for LOCK

David Prévot taffit at moszumanska.debian.org
Sat Oct 11 17:22:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 0732131cd9b4e69e57df59247658f2c71386ba6f
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date:   Fri Sep 12 22:02:42 2014 +0200

    content size checks are not valid for LOCK
---
 tests/lib/connector/sabre/file.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/lib/connector/sabre/file.php b/tests/lib/connector/sabre/file.php
index ba4e775..acc2634 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list