File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
apps/dav/tests/unit/Upload Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -128,14 +128,18 @@ public function testBeforeMoveFutureFileSkipNonExisting() {
128
128
->method ('nodeExists ' )
129
129
->with ('target ' )
130
130
->willReturn (false );
131
- $ this ->response ->expects ($ this ->never ())
132
- ->method ('setStatus ' );
131
+ $ this ->response ->expects ($ this ->once ())
132
+ ->method ('setHeader ' )
133
+ ->with ('Content-Length ' , '0 ' );
134
+ $ this ->response ->expects ($ this ->once ())
135
+ ->method ('setStatus ' )
136
+ ->with (204 );
133
137
$ this ->request ->expects ($ this ->once ())
134
138
->method ('getHeader ' )
135
139
->with ('OC-Total-Length ' )
136
140
->willReturn (4 );
137
141
138
- $ this ->assertNull ($ this ->plugin ->beforeMove ('source ' , 'target ' ));
142
+ $ this ->assertFalse ($ this ->plugin ->beforeMove ('source ' , 'target ' ));
139
143
}
140
144
141
145
public function testBeforeMoveFutureFileMoveIt () {
You can’t perform that action at this time.
0 commit comments