test root set icon url

This commit is contained in:
Yisroel Baum 2026-06-26 10:57:25 +03:00
parent b3c6f6af0b
commit 47254ea356
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -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