From 0a3747e6f5a18dbfc60c2984df33be2991230b4e Mon Sep 17 00:00:00 2001 From: Matthias Held Date: Fri, 14 Sep 2018 20:37:43 +0200 Subject: Fix visibility and unused code Signed-off-by: Matthias Held --- tests/Unit/MonitorTest.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/Unit/MonitorTest.php b/tests/Unit/MonitorTest.php index 50daee7..4a7a488 100644 --- a/tests/Unit/MonitorTest.php +++ b/tests/Unit/MonitorTest.php @@ -122,7 +122,7 @@ class MonitorTest extends TestCase $this->appManager, $this->logger, $this->rootFolder, $this->entropyAnalyzer, $this->mapper, $this->fileExtensionAnalyzer, $this->fileCorruptionAnalyzer, $this->userId]) - ->setMethods(['isUploadedFile', 'isCreatingSkeletonFiles', 'classifySequence', 'resetProfindCount', 'triggerAsyncAnalysis']) + ->setMethods(['isUploadedFile', 'isCreatingSkeletonFiles', 'classifySequence', 'resetProfindCount']) ->getMock(); $storage = $this->createMock(IStorage::class); @@ -142,9 +142,6 @@ class MonitorTest extends TestCase $monitor->expects($this->any()) ->method('resetProfindCount'); - $monitor->expects($this->any()) - ->method('triggerAsyncAnalysis'); - $entropyResult = new EntropyResult(EntropyResult::COMPRESSED, 7.99, 0.004); $this->entropyAnalyzer->method('analyze') @@ -205,7 +202,7 @@ class MonitorTest extends TestCase $this->appManager, $this->logger, $this->rootFolder, $this->entropyAnalyzer, $this->mapper, $this->fileExtensionAnalyzer, $this->fileCorruptionAnalyzer, $this->userId]) - ->setMethods(['isUploadedFile', 'isCreatingSkeletonFiles', 'triggerAsyncAnalysis', 'resetProfindCount']) + ->setMethods(['isUploadedFile', 'isCreatingSkeletonFiles', 'resetProfindCount']) ->getMock(); $storage = $this->createMock(IStorage::class); @@ -225,9 +222,6 @@ class MonitorTest extends TestCase $monitor->expects($this->any()) ->method('resetProfindCount'); - $monitor->expects($this->any()) - ->method('triggerAsyncAnalysis'); - $node = $this->createMock(Folder::class); $node->method('getInternalPath') ->willReturn('/admin/files/test.file'); -- cgit v1.2.3