summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-01-28 14:08:38 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-02-10 09:44:24 +0100
commitaabd73912ec278eb082d7f47d88f350ac523d0c7 (patch)
treeb7a26bf92f646b8d119b3afe69a3953b8d4c7f4f /tests
parentf96f0f6cad011d73846cdf98ed8b0d35b180a2ef (diff)
downloadnextcloud-server-aabd73912ec278eb082d7f47d88f350ac523d0c7.tar.gz
nextcloud-server-aabd73912ec278eb082d7f47d88f350ac523d0c7.zip
Type the service registration
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Http/WellKnown/RequestManagerTest.php13
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')