expect unlinkto be called
This commit is contained in:
parent
3fa5271f10
commit
826c6bec8f
|
@ -54,6 +54,10 @@ class Test_OC_Connector_Sabre_AbortedUploadDetectionPlugin extends PHPUnit_Frame
|
||||||
{
|
{
|
||||||
$this->plugin->fileView = $this->buildFileViewMock($fileSize);
|
$this->plugin->fileView = $this->buildFileViewMock($fileSize);
|
||||||
|
|
||||||
|
// we expect unlink to be called
|
||||||
|
$this->plugin->fileView->expects($this->once())->method('unlink');
|
||||||
|
|
||||||
|
|
||||||
$this->server->httpRequest = new Sabre_HTTP_Request($headers);
|
$this->server->httpRequest = new Sabre_HTTP_Request($headers);
|
||||||
$this->plugin->verifyContentLength('foo.txt');
|
$this->plugin->verifyContentLength('foo.txt');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue