]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix older php and phpunit version 1772/head
authorJoas Schilling <coding@schilljs.com>
Mon, 17 Oct 2016 13:45:28 +0000 (15:45 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 17 Oct 2016 13:45:28 +0000 (15:45 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/workflowengine/tests/ManagerTest.php

index 9136bf0e7cd6425026fee771e5b72887eb97ed75..681d44b3bf08e8542c7f447723cbc01c468d655d 100644 (file)
@@ -24,8 +24,6 @@ namespace OCA\WorkflowEngine\Tests;
 
 use OCA\WorkflowEngine\Manager;
 use OCP\IDBConnection;
-use OCP\IL10N;
-use OCP\IServerContainer;
 use Test\TestCase;
 
 /**
@@ -45,8 +43,8 @@ class ManagerTest extends TestCase {
                parent::setUp();
 
                $this->db = \OC::$server->getDatabaseConnection();
-               $container = $this->createMock(IServerContainer::class);
-               $l = $this->createMock(IL10N::class);
+               $container = $this->getMockBuilder('OCP\IServerContainer')->getMock();
+               $l = $this->getMockBuilder('OCP\IL10N')->getMock();
                $l->method('t')
                        ->will($this->returnCallback(function($text, $parameters = []) {
                                return vsprintf($text, $parameters);