summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/appframework/dependencyinjection/DIContainerTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/appframework/dependencyinjection/DIContainerTest.php b/tests/lib/appframework/dependencyinjection/DIContainerTest.php
index 0cbdddbb205..fc15b5a44ee 100644
--- a/tests/lib/appframework/dependencyinjection/DIContainerTest.php
+++ b/tests/lib/appframework/dependencyinjection/DIContainerTest.php
@@ -36,7 +36,9 @@ class DIContainerTest extends \Test\TestCase {
protected function setUp(){
parent::setUp();
- $this->container = new DIContainer('name');
+ $this->container = $this->getMock('OC\AppFramework\DependencyInjection\DIContainer',
+ ['isAdminUser'], ['name']
+ );
$this->api = $this->getMock('OC\AppFramework\Core\API', array(), array('hi'));
}