diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-11-27 13:51:20 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-11-30 14:10:00 +0100 |
commit | c9ac47a593cc2a32d5a2cbaa1527d5af1b3cd1a5 (patch) | |
tree | 62ff5dee956290bf3a375d970a841d3a1d31af04 /tests | |
parent | dde7c8b8fcde6ba5ae47b2fb69f2c725feb6040f (diff) | |
download | nextcloud-server-c9ac47a593cc2a32d5a2cbaa1527d5af1b3cd1a5.tar.gz nextcloud-server-c9ac47a593cc2a32d5a2cbaa1527d5af1b3cd1a5.zip |
Dont die when we're missing a route
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/appframework/routing/RoutingTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/appframework/routing/RoutingTest.php b/tests/lib/appframework/routing/RoutingTest.php index 51c191fdfb7..b063ef32835 100644 --- a/tests/lib/appframework/routing/RoutingTest.php +++ b/tests/lib/appframework/routing/RoutingTest.php @@ -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'); |