Skip to content
Snippets Groups Projects
Commit aa822f76 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix tests

parent b05c8fab
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ class RoutingTest extends \Test\TestCase
));
// router mock
$router = $this->getMock("\OC\Route\Router", array('create'));
$router = $this->getMock("\OC\Route\Router", array('create'), [\OC::$server->getLogger()]);
// load route configuration
$container = new DIContainer('app1');
......@@ -124,7 +124,7 @@ class RoutingTest extends \Test\TestCase
$route = $this->mockRoute($container, $verb, $controllerName, $actionName, $requirements, $defaults);
// router mock
$router = $this->getMock("\OC\Route\Router", array('create'));
$router = $this->getMock("\OC\Route\Router", array('create'), [\OC::$server->getLogger()]);
// we expect create to be called once:
$router
......@@ -148,7 +148,7 @@ class RoutingTest extends \Test\TestCase
private function assertResource($yaml, $resourceName, $url, $controllerName, $paramName)
{
// router mock
$router = $this->getMock("\OC\Route\Router", array('create'));
$router = $this->getMock("\OC\Route\Router", array('create'), [\OC::$server->getLogger()]);
// route mocks
$container = new DIContainer('app1');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment