From 826c6bec8f9a8137e0a2e7660389c728b59f95d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Wed, 25 Sep 2013 17:41:16 +0200 Subject: [PATCH] expect unlinkto be called --- tests/lib/connector/sabre/aborteduploaddetectionplugin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/lib/connector/sabre/aborteduploaddetectionplugin.php b/tests/lib/connector/sabre/aborteduploaddetectionplugin.php index 8237bdbd9e..bef0e4c4d7 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'); }