diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2021-02-10 15:31:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-10 15:31:42 +0100 |
commit | 2f26ff40e9aaabd1c8cc2167dea2158a22b1961f (patch) | |
tree | 571f4226d310546e904c0b2ff39b88811cefd79f /tests | |
parent | 8677870a097b079f52afb4b77de501ff144da401 (diff) | |
parent | aabd73912ec278eb082d7f47d88f350ac523d0c7 (diff) | |
download | nextcloud-server-2f26ff40e9aaabd1c8cc2167dea2158a22b1961f.tar.gz nextcloud-server-2f26ff40e9aaabd1c8cc2167dea2158a22b1961f.zip |
Merge pull request #25359 from nextcloud/enhancement/typed-service-registration
Type the service registration
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Http/WellKnown/RequestManagerTest.php | 13 |
1 files changed, 4 insertions, 9 deletions
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') |