mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Fix broken backport
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
818917c3fa
commit
dc8feeb260
2 changed files with 8 additions and 3 deletions
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
namespace OCA\DAV\Upload;
|
||||
|
||||
use OCA\DAV\Connector\Sabre\Exception\Forbidden;
|
||||
use Sabre\DAV\Exception\BadRequest;
|
||||
use Sabre\DAV\Server;
|
||||
use Sabre\DAV\ServerPlugin;
|
||||
|
|
|
|||
|
|
@ -101,8 +101,12 @@ class ChunkingPluginTest extends TestCase {
|
|||
->method('nodeExists')
|
||||
->with('target')
|
||||
->will($this->returnValue(false));
|
||||
$this->response->expects($this->never())
|
||||
->method('setStatus');
|
||||
$this->response->expects($this->once())
|
||||
->method('setHeader')
|
||||
->with('Content-Length', '0');
|
||||
$this->response->expects($this->once())
|
||||
->method('setStatus')
|
||||
->with(201);
|
||||
$this->request->expects($this->once())
|
||||
->method('getHeader')
|
||||
->with('OC-Total-Length')
|
||||
|
|
@ -143,7 +147,7 @@ class ChunkingPluginTest extends TestCase {
|
|||
$this->assertFalse($this->plugin->beforeMove('source', 'target'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function testBeforeMoveSizeIsWrong() {
|
||||
$this->expectException(\Sabre\DAV\Exception\BadRequest::class);
|
||||
$this->expectExceptionMessage('Chunks on server do not sum up to 4 but to 3 bytes');
|
||||
|
|
|
|||
Loading…
Reference in a new issue