From 72a9c35be3dd7a1e54a1ef6a4ed29448a08c1a86 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 6 Jul 2020 16:00:58 +0200 Subject: Remove some IRouter methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is not the end. IRouter needs to burn. But it is a start. 🎵 we didn't start the fire 🎵 Signed-off-by: Roeland Jago Douma --- tests/lib/UrlGeneratorTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/lib/UrlGeneratorTest.php') diff --git a/tests/lib/UrlGeneratorTest.php b/tests/lib/UrlGeneratorTest.php index b5db39dbf39..dd2eb2ddc63 100644 --- a/tests/lib/UrlGeneratorTest.php +++ b/tests/lib/UrlGeneratorTest.php @@ -8,11 +8,11 @@ namespace Test; +use OC\Route\Router; use OCP\ICacheFactory; use OCP\IConfig; use OCP\IRequest; use OCP\IURLGenerator; -use OCP\Route\IRouter; /** * Class UrlGeneratorTest @@ -27,7 +27,7 @@ class UrlGeneratorTest extends \Test\TestCase { private $cacheFactory; /** @var \PHPUnit\Framework\MockObject\MockObject|IRequest */ private $request; - /** @var \PHPUnit\Framework\MockObject\MockObject|IRouter */ + /** @var \PHPUnit\Framework\MockObject\MockObject|Router */ private $router; /** @var IURLGenerator */ private $urlGenerator; @@ -39,7 +39,7 @@ class UrlGeneratorTest extends \Test\TestCase { $this->config = $this->createMock(IConfig::class); $this->cacheFactory = $this->createMock(ICacheFactory::class); $this->request = $this->createMock(IRequest::class); - $this->router = $this->createMock(IRouter::class); + $this->router = $this->createMock(Router::class); $this->urlGenerator = new \OC\URLGenerator( $this->config, $this->cacheFactory, -- cgit v1.2.3