Skip to content
Snippets Groups Projects
Unverified Commit cda5cfc0 authored by Julius Härtl's avatar Julius Härtl
Browse files

Adjust chunking test for non-existing target node


Signed-off-by: default avatarJulius Härtl <jus@bitgrid.net>
parent 860f6d8f
No related branches found
No related tags found
No related merge requests found
...@@ -128,14 +128,18 @@ class ChunkingPluginTest extends TestCase { ...@@ -128,14 +128,18 @@ class ChunkingPluginTest extends TestCase {
->method('nodeExists') ->method('nodeExists')
->with('target') ->with('target')
->willReturn(false); ->willReturn(false);
$this->response->expects($this->never()) $this->response->expects($this->once())
->method('setStatus'); ->method('setHeader')
->with('Content-Length', '0');
$this->response->expects($this->once())
->method('setStatus')
->with(204);
$this->request->expects($this->once()) $this->request->expects($this->once())
->method('getHeader') ->method('getHeader')
->with('OC-Total-Length') ->with('OC-Total-Length')
->willReturn(4); ->willReturn(4);
$this->assertNull($this->plugin->beforeMove('source', 'target')); $this->assertFalse($this->plugin->beforeMove('source', 'target'));
} }
public function testBeforeMoveFutureFileMoveIt() { public function testBeforeMoveFutureFileMoveIt() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment