aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-01-23 17:11:39 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2023-01-26 11:54:28 +0100
commit8d9af3e26214f07e833a6b8d8b60329fc71916a7 (patch)
treec41dc1835261e45f9f5751b0d07d1f45d8f4d7ba /tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php
parent3eb73d0a3d081194e676b7e7ba220a118e01e18d (diff)
downloadnextcloud-server-8d9af3e26214f07e833a6b8d8b60329fc71916a7.tar.gz
nextcloud-server-8d9af3e26214f07e833a6b8d8b60329fc71916a7.zip
feat(app-framework): Add support for global middlewares
This allows apps to register middlewares that always register, not just for the app's own requests Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php')
-rw-r--r--tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php b/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php
index cee30b665fb..55f30a895f5 100644
--- a/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php
+++ b/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php
@@ -180,7 +180,7 @@ class RegistrationContextTest extends TestCase {
}
public function testGetMiddlewareRegistrations(): void {
- $this->context->registerMiddleware('core', TwoFactorMiddleware::class);
+ $this->context->registerMiddleware('core', TwoFactorMiddleware::class, false);
$registrations = $this->context->getMiddlewareRegistrations();