From a5a1f6a9d2b847f25dfbc21c096442ddfe0ec86e Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Sat, 19 Oct 2024 17:15:52 +0100 Subject: [PATCH] test: fix --- .../core/tests/integration/api/access_tokens/DeleteTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/tests/integration/api/access_tokens/DeleteTest.php b/framework/core/tests/integration/api/access_tokens/DeleteTest.php index 5c70a8e67..e511b2be3 100644 --- a/framework/core/tests/integration/api/access_tokens/DeleteTest.php +++ b/framework/core/tests/integration/api/access_tokens/DeleteTest.php @@ -101,7 +101,7 @@ class DeleteTest extends TestCase $sessionToken = AccessToken::query() ->where('user_id', 1) ->where('type', SessionAccessToken::$type) - ->latest() + ->latest('id') ->first(); $csrfToken = $responseWithSession->getHeaderLine('X-CSRF-Token');