summaryrefslogtreecommitdiffstats
path: root/tests/lib/appframework/middleware/MiddlewareTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/appframework/middleware/MiddlewareTest.php')
-rw-r--r--tests/lib/appframework/middleware/MiddlewareTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/appframework/middleware/MiddlewareTest.php b/tests/lib/appframework/middleware/MiddlewareTest.php
index 814efdd8118..9d952f61573 100644
--- a/tests/lib/appframework/middleware/MiddlewareTest.php
+++ b/tests/lib/appframework/middleware/MiddlewareTest.php
@@ -44,8 +44,10 @@ class MiddlewareTest extends \PHPUnit_Framework_TestCase {
protected function setUp(){
$this->middleware = new ChildMiddleware();
- $this->api = $this->getMock('OC\AppFramework\DependencyInjection\DIContainer',
- array(), array('test'));
+ $this->api = $this->getMockBuilder(
+ 'OC\AppFramework\DependencyInjection\DIContainer')
+ ->disableOriginalConstructor()
+ ->getMock();
$this->controller = $this->getMock('OCP\AppFramework\Controller',
array(), array($this->api, new Request()));