aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-09-25 17:41:16 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-09-25 17:41:16 +0200
commit826c6bec8f9a8137e0a2e7660389c728b59f95d5 (patch)
treed7bfeaef5071bb3b5f5c82b5db64f1efc6e6b444 /tests
parent3fa5271f10369645564f19a5706e23e0660bbbc8 (diff)
downloadnextcloud-server-826c6bec8f9a8137e0a2e7660389c728b59f95d5.tar.gz
nextcloud-server-826c6bec8f9a8137e0a2e7660389c728b59f95d5.zip
expect unlinkto be called
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/connector/sabre/aborteduploaddetectionplugin.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/connector/sabre/aborteduploaddetectionplugin.php b/tests/lib/connector/sabre/aborteduploaddetectionplugin.php
index 8237bdbd9e3..bef0e4c4d7d 100644
--- a/tests/lib/connector/sabre/aborteduploaddetectionplugin.php
+++ b/tests/lib/connector/sabre/aborteduploaddetectionplugin.php
@@ -54,6 +54,10 @@ class Test_OC_Connector_Sabre_AbortedUploadDetectionPlugin extends PHPUnit_Frame
{
$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->plugin->verifyContentLength('foo.txt');
}