content size checks are not valid for LOCK
This commit is contained in:
parent
1145529584
commit
cfa2eb7d32
|
@ -55,6 +55,7 @@ class Test_OC_Connector_Sabre_File extends PHPUnit_Framework_TestCase {
|
||||||
->will($this->returnValue(123456));
|
->will($this->returnValue(123456));
|
||||||
|
|
||||||
$_SERVER['CONTENT_LENGTH'] = 123456;
|
$_SERVER['CONTENT_LENGTH'] = 123456;
|
||||||
|
$_SERVER['REQUEST_METHOD'] = 'PUT';
|
||||||
|
|
||||||
$info = new \OC\Files\FileInfo('/test.txt', null, null, array(
|
$info = new \OC\Files\FileInfo('/test.txt', null, null, array(
|
||||||
'permissions' => \OCP\PERMISSION_ALL
|
'permissions' => \OCP\PERMISSION_ALL
|
||||||
|
@ -131,6 +132,7 @@ class Test_OC_Connector_Sabre_File extends PHPUnit_Framework_TestCase {
|
||||||
->will($this->returnValue(123456));
|
->will($this->returnValue(123456));
|
||||||
|
|
||||||
$_SERVER['CONTENT_LENGTH'] = 12345;
|
$_SERVER['CONTENT_LENGTH'] = 12345;
|
||||||
|
$_SERVER['REQUEST_METHOD'] = 'PUT';
|
||||||
|
|
||||||
$info = new \OC\Files\FileInfo('/test.txt', null, null, array(
|
$info = new \OC\Files\FileInfo('/test.txt', null, null, array(
|
||||||
'permissions' => \OCP\PERMISSION_ALL
|
'permissions' => \OCP\PERMISSION_ALL
|
||||||
|
|
Loading…
Reference in New Issue