summaryrefslogtreecommitdiffstats
path: root/tests/lib/appframework/routing/RoutingTest.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-03-10 14:04:58 +0100
committerRobin Appelman <icewind@owncloud.com>2014-03-10 14:04:58 +0100
commit8ab7d18a6a2b023527d2eef63099e2834c46ec97 (patch)
tree393f7f704655555a1892200215a46f4b741abc80 /tests/lib/appframework/routing/RoutingTest.php
parent0ffd32a1ae8c4b9da2434a0b5623c1fe6e910467 (diff)
downloadnextcloud-server-8ab7d18a6a2b023527d2eef63099e2834c46ec97.tar.gz
nextcloud-server-8ab7d18a6a2b023527d2eef63099e2834c46ec97.zip
Move the router classes to a namespace and expose it with a public interface
Diffstat (limited to 'tests/lib/appframework/routing/RoutingTest.php')
-rw-r--r--tests/lib/appframework/routing/RoutingTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/appframework/routing/RoutingTest.php b/tests/lib/appframework/routing/RoutingTest.php
index d0244cf2511..9f2675bf0b4 100644
--- a/tests/lib/appframework/routing/RoutingTest.php
+++ b/tests/lib/appframework/routing/RoutingTest.php
@@ -46,7 +46,7 @@ class RouteConfigTest extends \PHPUnit_Framework_TestCase
));
// router mock
- $router = $this->getMock("\OC_Router", array('create'));
+ $router = $this->getMock("\OC\Route\Router", array('create'));
// load route configuration
$container = new DIContainer('app1');
@@ -91,7 +91,7 @@ class RouteConfigTest extends \PHPUnit_Framework_TestCase
$route = $this->mockRoute($verb, $controllerName, $actionName);
// router mock
- $router = $this->getMock("\OC_Router", array('create'));
+ $router = $this->getMock("\OC\Route\Router", array('create'));
// we expect create to be called once:
$router
@@ -116,7 +116,7 @@ class RouteConfigTest extends \PHPUnit_Framework_TestCase
private function assertResource($yaml, $resourceName, $url, $controllerName, $paramName)
{
// router mock
- $router = $this->getMock("\OC_Router", array('create'));
+ $router = $this->getMock("\OC\Route\Router", array('create'));
// route mocks
$indexRoute = $this->mockRoute('GET', $controllerName, 'index');
@@ -174,7 +174,7 @@ class RouteConfigTest extends \PHPUnit_Framework_TestCase
private function mockRoute($verb, $controllerName, $actionName)
{
$container = new DIContainer('app1');
- $route = $this->getMock("\OC_Route", array('method', 'action'), array(), '', false);
+ $route = $this->getMock("\OC\Route\Route", array('method', 'action'), array(), '', false);
$route
->expects($this->exactly(1))
->method('method')