diff options
author | Matthias Held <ilovemilk@wusa.io> | 2018-08-30 16:26:45 +0300 |
---|---|---|
committer | Matthias Held <ilovemilk@wusa.io> | 2018-08-30 16:26:45 +0300 |
commit | 0d6d3da32c31bf06130ea863433e9498be77076e (patch) | |
tree | 350af62324ca97ab72b2b19601c266ea992a629d | |
parent | fdadfe3df4310fe69214d11a54bff607b0965b17 (diff) |
Fix ScanController tests
-rw-r--r-- | lib/Controller/ScanController.php | 3 | ||||
-rw-r--r-- | tests/Unit/Controller/ScanControllerTest.php | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/Controller/ScanController.php b/lib/Controller/ScanController.php index 3acb05b..10dc6b2 100644 --- a/lib/Controller/ScanController.php +++ b/lib/Controller/ScanController.php @@ -137,8 +137,11 @@ class ScanController extends OCSController * * @NoAdminRequired * + * @param integer $id + * @param integer $sequence * @param integer $command * @param string $path + * @param string $name * @param integer $timestamp * * @return JSONResponse diff --git a/tests/Unit/Controller/ScanControllerTest.php b/tests/Unit/Controller/ScanControllerTest.php index 85fa9ce..30a6e62 100644 --- a/tests/Unit/Controller/ScanControllerTest.php +++ b/tests/Unit/Controller/ScanControllerTest.php @@ -185,7 +185,7 @@ class ScanControllerTest extends TestCase ->method('restoreFromTrashbin') ->willReturn($restored); - $result = $controller->recover($id, $sequence, $command, $path ,$timestamp); + $result = $controller->recover($id, $sequence, $command, $path, $name, $timestamp); $this->assertTrue($result instanceof JSONResponse); $this->assertEquals($result->getStatus(), $response); } |