Browse Source

content size checks are not valid for LOCK

tags/v8.0.0alpha1
Thomas Müller 9 years ago
parent
commit
cfa2eb7d32
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      tests/lib/connector/sabre/file.php

+ 2
- 0
tests/lib/connector/sabre/file.php View File

@@ -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…
Cancel
Save