Adjust chunking test for non-existing target node
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
242b19f18e
commit
b83c858e6d
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue