diff --git a/backend/tests/Feature/SetsEndpointTest.php b/backend/tests/Feature/SetsEndpointTest.php index 74592cc..8f4af23 100644 --- a/backend/tests/Feature/SetsEndpointTest.php +++ b/backend/tests/Feature/SetsEndpointTest.php @@ -131,6 +131,13 @@ class SetsEndpointTest extends TestCase $this->assertStringStartsWith('set-icons/', $storedIconPath); $this->assertSame($storedIconPath, $rootElement->getIconImageUrl()); Storage::disk('public')->assertExists($storedIconPath); + + $elementResponse = $this->getJson("/api/elements/$rootElementId"); + $elementResponse->assertOk(); + $elementResponse->assertJsonPath( + 'element.iconImageUrl', + $body['set']['iconImageUrl'], + ); } public function testCreateSetRequiresIconImage(): void