diff options
author | Matthias <ilovemilk@wusa.io> | 2020-09-20 15:47:40 +0300 |
---|---|---|
committer | Matthias <ilovemilk@wusa.io> | 2020-09-20 15:47:40 +0300 |
commit | d222f819995bd165f78c3ff4ffc49d748b00f761 (patch) | |
tree | 3259f85cf07e2e429f5ccc749b9e1a85128a1ff6 | |
parent | 01f8d2e1adf2e6d83e43072ef38404283de2f0e4 (diff) |
fix tests
-rw-r--r-- | tests/Unit/Controller/FileOperationControllerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Controller/FileOperationControllerTest.php b/tests/Unit/Controller/FileOperationControllerTest.php index 963da03..99e87ae 100644 --- a/tests/Unit/Controller/FileOperationControllerTest.php +++ b/tests/Unit/Controller/FileOperationControllerTest.php @@ -227,7 +227,7 @@ class FileOperationControllerTest extends TestCase $this->service->method('find') ->will($this->throwException(new \OCP\AppFramework\Db\MultipleObjectsReturnedException('test'))); - $result = $controller->recover(1); + $result = $controller->recover([1]); $this->assertTrue($result instanceof JSONResponse); $this->assertEquals($result->getStatus(), Http::STATUS_BAD_REQUEST); } @@ -254,7 +254,7 @@ class FileOperationControllerTest extends TestCase $this->service->method('find') ->will($this->throwException(new \OCP\AppFramework\Db\DoesNotExistException('test'))); - $result = $controller->recover(1); + $result = $controller->recover([1]); $this->assertTrue($result instanceof JSONResponse); $this->assertEquals($result->getStatus(), Http::STATUS_BAD_REQUEST); } |