aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author諏訪子 <suwako@076.moe>2025-05-27 18:40:27 +0900
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-07-07 10:02:19 +0000
commitdf78886ae70bc58de859ddda2910b8b51d179491 (patch)
tree08a0316e79622113956fee2b86409cc80afbfecd
parent645b98961907786f173f59dd3f2153955fcf8593 (diff)
downloadnextcloud-server-backport/53109/stable31.tar.gz
nextcloud-server-backport/53109/stable31.zip
fix(settings): fix testbackport/53109/stable31
Signed-off-by: 諏訪子 <suwako@076.moe>
-rw-r--r--tests/lib/Accounts/AccountManagerTest.php31
1 files changed, 27 insertions, 4 deletions
diff --git a/tests/lib/Accounts/AccountManagerTest.php b/tests/lib/Accounts/AccountManagerTest.php
index ec391e04210..06a4ab38afc 100644
--- a/tests/lib/Accounts/AccountManagerTest.php
+++ b/tests/lib/Accounts/AccountManagerTest.php
@@ -792,20 +792,41 @@ class AccountManagerTest extends TestCase {
'@foo@example.com',
'foo@example.com',
true,
- json_encode(['username' => 'foo']),
+ json_encode([
+ 'subject' => 'acct:foo@example.com',
+ 'links' => [
+ [
+ 'rel' => 'self',
+ 'type' => 'application/activity+json',
+ 'href' => 'https://example.com/users/foo',
+ ],
+ ],
+ ]),
],
'valid response - no at' => [
'foo@example.com',
'foo@example.com',
true,
- json_encode(['username' => 'foo']),
+ json_encode([
+ 'subject' => 'acct:foo@example.com',
+ 'links' => [
+ [
+ 'rel' => 'self',
+ 'type' => 'application/activity+json',
+ 'href' => 'https://example.com/users/foo',
+ ],
+ ],
+ ]),
],
// failures
'invalid response' => [
'@foo@example.com',
null,
true,
- json_encode(['not found']),
+ json_encode([
+ 'subject' => 'acct:foo@example.com',
+ 'links' => [],
+ ]),
],
'no response' => [
'@foo@example.com',
@@ -817,7 +838,9 @@ class AccountManagerTest extends TestCase {
'@foo@example.com',
null,
true,
- json_encode(['username' => 'foo@other.example.com']),
+ json_encode([
+ 'links' => [],
+ ]),
],
];
}