aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-02-10 15:31:42 +0100
committerGitHub <noreply@github.com>2021-02-10 15:31:42 +0100
commit2f26ff40e9aaabd1c8cc2167dea2158a22b1961f (patch)
tree571f4226d310546e904c0b2ff39b88811cefd79f /tests
parent8677870a097b079f52afb4b77de501ff144da401 (diff)
parentaabd73912ec278eb082d7f47d88f350ac523d0c7 (diff)
downloadnextcloud-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.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')