Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/undo-ransomware/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Held <ilovemilk@wusa.io>2018-09-14 21:37:43 +0300
committerMatthias Held <ilovemilk@wusa.io>2018-09-14 21:37:43 +0300
commit0a3747e6f5a18dbfc60c2984df33be2991230b4e (patch)
tree438fd635c8ebc55ae982f6975f3d5816c7fec300 /tests
parentd13f6eb2292046408b7f60f8b94d483a3be1733e (diff)
Fix visibility and unused code
Signed-off-by: Matthias Held <matthias.held@uni-konstanz.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/MonitorTest.php10
1 files changed, 2 insertions, 8 deletions
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');