test element icons

This commit is contained in:
Yisroel Baum 2026-05-27 21:10:52 +03:00
parent c5ea3640b7
commit ac7af2463d
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
7 changed files with 80 additions and 0 deletions

View file

@ -30,6 +30,7 @@ class ElementControllerTest extends TestCase
$set,
'Baderech HaAvodah',
'A structured path for growth',
'/assets/baderech-icon.png',
'<p>A structured path for growth</p>',
'/assets/pdfs/baderech.pdf',
'https://www.youtube.com/watch?v=yHx-r4p6hHU&t=1s',
@ -39,6 +40,7 @@ class ElementControllerTest extends TestCase
$set,
'Avodah Foundations',
'Foundations for steady avodah',
null,
'<p>Foundations rich text</p>',
'/assets/pdfs/foundations.pdf',
null,
@ -48,6 +50,7 @@ class ElementControllerTest extends TestCase
$set,
'Daily Practice',
'Daily practices for growth',
null,
'<p>Daily practice rich text</p>',
null,
null,
@ -68,6 +71,10 @@ class ElementControllerTest extends TestCase
'<p>A structured path for growth</p>',
$body['element']['richText'],
);
$this->assertSame(
'/assets/baderech-icon.png',
$body['element']['iconImageUrl'],
);
$this->assertSame(
'/assets/pdfs/baderech.pdf',
$body['element']['pdfPath'],
@ -126,6 +133,7 @@ class ElementControllerTest extends TestCase
DomainSet $set,
string $title,
string $description,
?string $iconImageUrl,
string $richText,
?string $pdfPath,
?string $youtubeUrl,
@ -135,6 +143,7 @@ class ElementControllerTest extends TestCase
set: $set,
title: $title,
description: $description,
iconImageUrl: $iconImageUrl,
richText: $richText,
pdfPath: $pdfPath,
youtubeUrl: $youtubeUrl,