test: fix

This commit is contained in:
Sami Mazouz 2024-10-19 17:15:52 +01:00
parent 53de041194
commit a5a1f6a9d2
No known key found for this signature in database

View File

@ -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');