summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-07-10 14:19:55 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-07-11 08:50:30 +0200
commit937c9519d6338faffb02fef86d0367159eb9bb16 (patch)
tree69374c2e8004cbf372ffb611e7e3d80a561d13cf /tests
parent2fa9e672940012bfff5c3763d573158960416372 (diff)
downloadnextcloud-server-937c9519d6338faffb02fef86d0367159eb9bb16.tar.gz
nextcloud-server-937c9519d6338faffb02fef86d0367159eb9bb16.zip
Mock logger
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/AppFramework/Routing/RoutingTest.php6
1 files 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