content size checks are not valid for LOCK
This commit is contained in:
parent
1145529584
commit
cfa2eb7d32
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue