test root set icon url
This commit is contained in:
parent
b3c6f6af0b
commit
47254ea356
1 changed files with 7 additions and 0 deletions
|
|
@ -131,6 +131,13 @@ class SetsEndpointTest extends TestCase
|
||||||
$this->assertStringStartsWith('set-icons/', $storedIconPath);
|
$this->assertStringStartsWith('set-icons/', $storedIconPath);
|
||||||
$this->assertSame($storedIconPath, $rootElement->getIconImageUrl());
|
$this->assertSame($storedIconPath, $rootElement->getIconImageUrl());
|
||||||
Storage::disk('public')->assertExists($storedIconPath);
|
Storage::disk('public')->assertExists($storedIconPath);
|
||||||
|
|
||||||
|
$elementResponse = $this->getJson("/api/elements/$rootElementId");
|
||||||
|
$elementResponse->assertOk();
|
||||||
|
$elementResponse->assertJsonPath(
|
||||||
|
'element.iconImageUrl',
|
||||||
|
$body['set']['iconImageUrl'],
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testCreateSetRequiresIconImage(): void
|
public function testCreateSetRequiresIconImage(): void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue