aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/appframework/dependencyinjection/DIContainerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/appframework/dependencyinjection/DIContainerTest.php')
-rw-r--r--tests/lib/appframework/dependencyinjection/DIContainerTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/appframework/dependencyinjection/DIContainerTest.php b/tests/lib/appframework/dependencyinjection/DIContainerTest.php
index 08e72aff984..43309f64e63 100644
--- a/tests/lib/appframework/dependencyinjection/DIContainerTest.php
+++ b/tests/lib/appframework/dependencyinjection/DIContainerTest.php
@@ -71,7 +71,10 @@ class DIContainerTest extends \Test\TestCase {
public function testMiddlewareDispatcherIncludesSecurityMiddleware(){
- $this->container['Request'] = new Request(array('method' => 'GET'));
+ $this->container['Request'] = new Request(
+ ['method' => 'GET'],
+ $this->getMockBuilder('\OCP\Security\ISecureRandom')->getMock()
+ );
$security = $this->container['SecurityMiddleware'];
$dispatcher = $this->container['MiddlewareDispatcher'];