From 937c9519d6338faffb02fef86d0367159eb9bb16 Mon Sep 17 00:00:00 2001
From: Roeland Jago Douma <roeland@famdouma.nl>
Date: Sun, 10 Jul 2016 14:19:55 +0200
Subject: [PATCH] Mock logger

---
 tests/lib/AppFramework/Routing/RoutingTest.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/lib/AppFramework/Routing/RoutingTest.php b/tests/lib/AppFramework/Routing/RoutingTest.php
index ce0866f0511..52a5eb33ba9 100644
--- a/tests/lib/AppFramework/Routing/RoutingTest.php
+++ b/tests/lib/AppFramework/Routing/RoutingTest.php
@@ -76,7 +76,7 @@ class RoutingTest extends \Test\TestCase
 		// router mock
 		$router = $this->getMockBuilder('\OC\Route\Router')
 			->setMethods(['create'])
-			->setConstructorArgs([\OC::$server->getLogger()])
+			->setConstructorArgs([$this->getMockBuilder('\OCP\ILogger')->getMock()])
 			->getMock();
 
 		// load route configuration
@@ -129,7 +129,7 @@ class RoutingTest extends \Test\TestCase
 		// router mock
 		$router = $this->getMockBuilder('\OC\Route\Router')
 			->setMethods(['create'])
-			->setConstructorArgs([\OC::$server->getLogger()])
+			->setConstructorArgs([$this->getMockBuilder('\OCP\ILogger')->getMock()])
 			->getMock();
 
 		// we expect create to be called once:
@@ -156,7 +156,7 @@ class RoutingTest extends \Test\TestCase
 		// router mock
 		$router = $this->getMockBuilder('\OC\Route\Router')
 			->setMethods(['create'])
-			->setConstructorArgs([\OC::$server->getLogger()])
+			->setConstructorArgs([$this->getMockBuilder('\OCP\ILogger')->getMock()])
 			->getMock();
 
 		// route mocks
-- 
GitLab