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
diff options
context:
space:
mode:
authorMatthias Held <ilovemilk@wusa.io>2018-09-14 23:33:02 +0300
committerMatthias Held <ilovemilk@wusa.io>2018-09-14 23:33:02 +0300
commit66ee5ca816da271a78fff027c5d3ca1dce299936 (patch)
tree0d8ba544e65d4af2401e11b63ee084c25e9d3d66 /tests/Unit
parent6bb7f940754229d45ee86515f590afc3c21537b9 (diff)
Fix test
Signed-off-by: Matthias Held <matthias.held@uni-konstanz.de>
Diffstat (limited to 'tests/Unit')
-rw-r--r--tests/Unit/Controller/ScanControllerTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Unit/Controller/ScanControllerTest.php b/tests/Unit/Controller/ScanControllerTest.php
index 5d0fa94..80f2364 100644
--- a/tests/Unit/Controller/ScanControllerTest.php
+++ b/tests/Unit/Controller/ScanControllerTest.php
@@ -223,6 +223,10 @@ class ScanControllerTest extends TestCase
->method('getLastActivity')
->willReturn(123);
+ $this->folder->expects($this->any())
+ ->method('getDirectoryListing')
+ ->willReturn(array());
+
$result = $controller->filesToScan();
$this->assertTrue($result instanceof JSONResponse);
$this->assertEquals($result->getStatus(), Http::STATUS_OK);