From a79f33a3a1daaa1b227d7358f1d89b0e5cab52c3 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 6 Feb 2026 21:13:23 +1300 Subject: [PATCH] fix: Remove incorrect json_decode in setupUser The client body is already decoded as array, not JSON string. Co-Authored-By: Claude Opus 4.5 --- tests/e2e/Services/Users/UsersBase.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/e2e/Services/Users/UsersBase.php b/tests/e2e/Services/Users/UsersBase.php index 3fe581ea7f..585ebefc66 100644 --- a/tests/e2e/Services/Users/UsersBase.php +++ b/tests/e2e/Services/Users/UsersBase.php @@ -58,8 +58,7 @@ trait UsersBase } if ($user['headers']['status-code'] === 201) { - $body = json_decode($user['body'], true); - static::$cachedUser[$projectId] = ['userId' => $body['$id']]; + static::$cachedUser[$projectId] = ['userId' => $user['body']['$id']]; } return static::$cachedUser[$projectId];