diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-02-17 13:17:04 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-02-17 13:17:04 +0100 |
commit | 76c511de92f1b4dc6dcc31ac5ae15ffade29bb18 (patch) | |
tree | afa1983f7e1d9ad6bf180321eb2408c19082cac4 /tests/lib/appframework/controller/ApiControllerTest.php | |
parent | e8f16db49d3da864bf3d919918b79dcf59e0c10c (diff) | |
parent | cebf9f6a5a2d75ea682f109486ada3d5558fb6a2 (diff) | |
download | nextcloud-server-76c511de92f1b4dc6dcc31ac5ae15ffade29bb18.tar.gz nextcloud-server-76c511de92f1b4dc6dcc31ac5ae15ffade29bb18.zip |
Merge pull request #14056 from owncloud/refactor/13976
Refactor OC_Request into TrustedDomainHelper and IRequest
Diffstat (limited to 'tests/lib/appframework/controller/ApiControllerTest.php')
-rw-r--r-- | tests/lib/appframework/controller/ApiControllerTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/appframework/controller/ApiControllerTest.php b/tests/lib/appframework/controller/ApiControllerTest.php index b2e52cc0b5c..137e5950f67 100644 --- a/tests/lib/appframework/controller/ApiControllerTest.php +++ b/tests/lib/appframework/controller/ApiControllerTest.php @@ -37,7 +37,8 @@ class ApiControllerTest extends \Test\TestCase { public function testCors() { $request = new Request( ['server' => ['HTTP_ORIGIN' => 'test']], - $this->getMockBuilder('\OCP\Security\ISecureRandom')->getMock() + $this->getMock('\OCP\Security\ISecureRandom'), + $this->getMock('\OCP\IConfig') ); $this->controller = new ChildApiController('app', $request, 'verbs', 'headers', 100); |