aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Controller/ControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/AppFramework/Controller/ControllerTest.php')
-rw-r--r--tests/lib/AppFramework/Controller/ControllerTest.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/lib/AppFramework/Controller/ControllerTest.php b/tests/lib/AppFramework/Controller/ControllerTest.php
index 521799a46ce..63cc2873575 100644
--- a/tests/lib/AppFramework/Controller/ControllerTest.php
+++ b/tests/lib/AppFramework/Controller/ControllerTest.php
@@ -76,12 +76,18 @@ class ControllerTest extends \Test\TestCase {
'session' => ['sezession' => 'kein'],
'method' => 'hi',
],
- $this->getMock('\OCP\Security\ISecureRandom'),
- $this->getMock('\OCP\IConfig')
+ $this->getMockBuilder('\OCP\Security\ISecureRandom')
+ ->disableOriginalConstructor()
+ ->getMock(),
+ $this->getMockBuilder('\OCP\IConfig')
+ ->disableOriginalConstructor()
+ ->getMock()
);
- $this->app = $this->getMock('OC\AppFramework\DependencyInjection\DIContainer',
- array('getAppName'), array('test'));
+ $this->app = $this->getMockBuilder('OC\AppFramework\DependencyInjection\DIContainer')
+ ->setMethods(['getAppName'])
+ ->setConstructorArgs(['test'])
+ ->getMock();
$this->app->expects($this->any())
->method('getAppName')
->will($this->returnValue('apptemplate_advanced'));