From 88a19eaa84c113e3960a8c3a10e876f7472f2550 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 17 Oct 2016 15:45:28 +0200 Subject: [PATCH] Fix older php and phpunit version Signed-off-by: Joas Schilling --- apps/workflowengine/tests/ManagerTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/workflowengine/tests/ManagerTest.php b/apps/workflowengine/tests/ManagerTest.php index 9136bf0e7cd..681d44b3bf0 100644 --- a/apps/workflowengine/tests/ManagerTest.php +++ b/apps/workflowengine/tests/ManagerTest.php @@ -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); -- 2.39.5