aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2024-03-15 12:51:31 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2024-06-05 19:01:14 +0200
commitf6d6efef3a26fc5524988cdfba780dce035cd61b (patch)
treeea3caeb6b4a9e10b013eb1562135eb6a1973f607 /tests/lib/AppFramework
parent340939e688fab5c52061bc9e358587fbd8ec9fc8 (diff)
downloadnextcloud-server-f6d6efef3a26fc5524988cdfba780dce035cd61b.tar.gz
nextcloud-server-f6d6efef3a26fc5524988cdfba780dce035cd61b.zip
refactor(Token): introduce scope constants
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'tests/lib/AppFramework')
-rw-r--r--tests/lib/AppFramework/Middleware/Security/PasswordConfirmationMiddlewareTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/AppFramework/Middleware/Security/PasswordConfirmationMiddlewareTest.php b/tests/lib/AppFramework/Middleware/Security/PasswordConfirmationMiddlewareTest.php
index f1030c449e2..beee7151264 100644
--- a/tests/lib/AppFramework/Middleware/Security/PasswordConfirmationMiddlewareTest.php
+++ b/tests/lib/AppFramework/Middleware/Security/PasswordConfirmationMiddlewareTest.php
@@ -181,7 +181,7 @@ class PasswordConfirmationMiddlewareTest extends TestCase {
$token = $this->createMock(IToken::class);
$token->method('getScopeAsArray')
- ->willReturn(['sso-based-login' => true]);
+ ->willReturn([IToken::SCOPE_SKIP_PASSWORD_VALIDATION => true]);
$this->tokenProvider->expects($this->once())
->method('getToken')
->with($sessionId)