add element updates

This commit is contained in:
Yisroel Baum 2026-05-28 20:08:36 +03:00
parent 6d0acaae56
commit 73b0befc97
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
10 changed files with 223 additions and 13 deletions

View file

@ -158,7 +158,8 @@ class ElementsEndpointTest extends TestCase
));
$this->createSession('valid-token');
$response = $this->withCookie('auth_token', 'valid-token')
$response = $this->withCredentials()
->withUnencryptedCookie('auth_token', 'valid-token')
->patchJson("/api/elements/{$element->getId()}", [
'title' => 'Updated title',
'description' => 'Updated description',