aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/appframework/controller/ApiControllerTest.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-02-17 13:17:04 +0100
committerLukas Reschke <lukas@owncloud.com>2015-02-17 13:17:04 +0100
commit76c511de92f1b4dc6dcc31ac5ae15ffade29bb18 (patch)
treeafa1983f7e1d9ad6bf180321eb2408c19082cac4 /tests/lib/appframework/controller/ApiControllerTest.php
parente8f16db49d3da864bf3d919918b79dcf59e0c10c (diff)
parentcebf9f6a5a2d75ea682f109486ada3d5558fb6a2 (diff)
downloadnextcloud-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.php3
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);