diff --git a/framework/core/tests/integration/api/access_tokens/DeleteTest.php b/framework/core/tests/integration/api/access_tokens/DeleteTest.php index 5c70a8e672..e511b2be3a 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 @@ public function user_cannot_delete_current_session_token() $sessionToken = AccessToken::query() ->where('user_id', 1) ->where('type', SessionAccessToken::$type) - ->latest() + ->latest('id') ->first(); $csrfToken = $responseWithSession->getHeaderLine('X-CSRF-Token');