test set media fields
This commit is contained in:
parent
c7b55b64ca
commit
1ce7688d33
2 changed files with 22 additions and 1 deletions
|
|
@ -9,9 +9,22 @@ class SetTest extends TestCase
|
|||
{
|
||||
public function testCreatesSetWithName(): void
|
||||
{
|
||||
$set = new DomainSet(1, 'Daily learning');
|
||||
$set = new DomainSet(
|
||||
id: 1,
|
||||
name: 'Daily learning',
|
||||
description: 'A structured path for daily growth',
|
||||
iconImageUrl: '/assets/daily-learning-icon.svg',
|
||||
);
|
||||
|
||||
$this->assertSame(1, $set->getId());
|
||||
$this->assertSame('Daily learning', $set->getName());
|
||||
$this->assertSame(
|
||||
'A structured path for daily growth',
|
||||
$set->getDescription()
|
||||
);
|
||||
$this->assertSame(
|
||||
'/assets/daily-learning-icon.svg',
|
||||
$set->getIconImageUrl()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue