Mock logger
This commit is contained in:
parent
2fa9e67294
commit
937c9519d6
1 changed files with 3 additions and 3 deletions
|
@ -76,7 +76,7 @@ class RoutingTest extends \Test\TestCase
|
||||||
// router mock
|
// router mock
|
||||||
$router = $this->getMockBuilder('\OC\Route\Router')
|
$router = $this->getMockBuilder('\OC\Route\Router')
|
||||||
->setMethods(['create'])
|
->setMethods(['create'])
|
||||||
->setConstructorArgs([\OC::$server->getLogger()])
|
->setConstructorArgs([$this->getMockBuilder('\OCP\ILogger')->getMock()])
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
// load route configuration
|
// load route configuration
|
||||||
|
@ -129,7 +129,7 @@ class RoutingTest extends \Test\TestCase
|
||||||
// router mock
|
// router mock
|
||||||
$router = $this->getMockBuilder('\OC\Route\Router')
|
$router = $this->getMockBuilder('\OC\Route\Router')
|
||||||
->setMethods(['create'])
|
->setMethods(['create'])
|
||||||
->setConstructorArgs([\OC::$server->getLogger()])
|
->setConstructorArgs([$this->getMockBuilder('\OCP\ILogger')->getMock()])
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
// we expect create to be called once:
|
// we expect create to be called once:
|
||||||
|
@ -156,7 +156,7 @@ class RoutingTest extends \Test\TestCase
|
||||||
// router mock
|
// router mock
|
||||||
$router = $this->getMockBuilder('\OC\Route\Router')
|
$router = $this->getMockBuilder('\OC\Route\Router')
|
||||||
->setMethods(['create'])
|
->setMethods(['create'])
|
||||||
->setConstructorArgs([\OC::$server->getLogger()])
|
->setConstructorArgs([$this->getMockBuilder('\OCP\ILogger')->getMock()])
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
// route mocks
|
// route mocks
|
||||||
|
|
Loading…
Reference in a new issue