From aabd73912ec278eb082d7f47d88f350ac523d0c7 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 28 Jan 2021 14:08:38 +0100 Subject: Type the service registration Signed-off-by: Christoph Wurst --- tests/lib/Http/WellKnown/RequestManagerTest.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'tests/lib/Http') diff --git a/tests/lib/Http/WellKnown/RequestManagerTest.php b/tests/lib/Http/WellKnown/RequestManagerTest.php index b947df49496..1fa92804cfa 100644 --- a/tests/lib/Http/WellKnown/RequestManagerTest.php +++ b/tests/lib/Http/WellKnown/RequestManagerTest.php @@ -27,6 +27,7 @@ namespace Test\Http\WellKnown; use OC\AppFramework\Bootstrap\Coordinator; use OC\AppFramework\Bootstrap\RegistrationContext; +use OC\AppFramework\Bootstrap\ServiceRegistration; use OC\Http\WellKnown\RequestManager; use OCP\AppFramework\QueryException; use OCP\Http\WellKnown\IHandler; @@ -102,9 +103,7 @@ class RequestManagerTest extends TestCase { $registrationContext->expects(self::once()) ->method('getWellKnownHandlers') ->willReturn([ - [ - 'class' => get_class($handler), - ], + new ServiceRegistration('test', get_class($handler)), ]); $this->container->expects(self::once()) ->method('get') @@ -129,9 +128,7 @@ class RequestManagerTest extends TestCase { $registrationContext->expects(self::once()) ->method('getWellKnownHandlers') ->willReturn([ - [ - 'class' => get_class($handler), - ], + new ServiceRegistration('test', get_class($handler)), ]); $this->container->expects(self::once()) ->method('get') @@ -159,9 +156,7 @@ class RequestManagerTest extends TestCase { $registrationContext->expects(self::once()) ->method('getWellKnownHandlers') ->willReturn([ - [ - 'class' => get_class($handler), - ], + new ServiceRegistration('test', get_class($handler)), ]); $this->container->expects(self::once()) ->method('get') -- cgit v1.2.3