diff options
author | Matthias Held <ilovemilk@wusa.io> | 2018-09-14 23:33:02 +0300 |
---|---|---|
committer | Matthias Held <ilovemilk@wusa.io> | 2018-09-14 23:33:02 +0300 |
commit | 66ee5ca816da271a78fff027c5d3ca1dce299936 (patch) | |
tree | 0d8ba544e65d4af2401e11b63ee084c25e9d3d66 /tests/Unit | |
parent | 6bb7f940754229d45ee86515f590afc3c21537b9 (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.php | 4 |
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); |