]> source.dussan.org Git - nextcloud-server.git/commitdiff
expect unlinkto be called
authorThomas Müller <thomas.mueller@tmit.eu>
Wed, 25 Sep 2013 15:41:16 +0000 (17:41 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 25 Sep 2013 15:41:16 +0000 (17:41 +0200)
tests/lib/connector/sabre/aborteduploaddetectionplugin.php

index 8237bdbd9e3f33a322b43589e681b543766b2938..bef0e4c4d7d13aab36fe1e1f8446da8238ce7e9c 100644 (file)
@@ -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');
        }