diff options
author | 諏訪子 <suwako@076.moe> | 2025-05-27 18:40:27 +0900 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-07-07 10:02:25 +0000 |
commit | 37c62842c4a729c002c6f12a8c23586075f79fc5 (patch) | |
tree | 6bf8f75e7872803f5632e5c03bab6aa736063ebd | |
parent | 1a2f69e0e770f83bd4cbe5e5ad21ce44ca5c2521 (diff) | |
download | nextcloud-server-backport/53109/stable30.tar.gz nextcloud-server-backport/53109/stable30.zip |
fix(settings): fix testbackport/53109/stable30
Signed-off-by: 諏訪子 <suwako@076.moe>
-rw-r--r-- | tests/lib/Accounts/AccountManagerTest.php | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/tests/lib/Accounts/AccountManagerTest.php b/tests/lib/Accounts/AccountManagerTest.php index 23a2cd7d996..518a0f37a16 100644 --- a/tests/lib/Accounts/AccountManagerTest.php +++ b/tests/lib/Accounts/AccountManagerTest.php @@ -786,20 +786,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', @@ -811,7 +832,9 @@ class AccountManagerTest extends TestCase { '@foo@example.com', null, true, - json_encode(['username' => 'foo@other.example.com']), + json_encode([ + 'links' => [], + ]), ], ]; } |