test element descriptions

This commit is contained in:
Yisroel Baum 2026-05-26 21:10:42 +03:00
parent a317f24976
commit f2dc1483dd
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
6 changed files with 80 additions and 1 deletions

View file

@ -25,16 +25,19 @@ class ElementsEndpointTest extends TestCase
$element = $elementRepository->create(new CreateElementDto(
set: $set,
title: 'Baderech HaAvodah',
description: 'A structured path for growth',
parentElement: null,
));
$firstChildElement = $elementRepository->create(new CreateElementDto(
set: $set,
title: 'Avodah Foundations',
description: 'Foundations for steady avodah',
parentElement: $element,
));
$secondChildElement = $elementRepository->create(new CreateElementDto(
set: $set,
title: 'Daily Practice',
description: 'Daily practices for growth',
parentElement: $element,
));
@ -46,15 +49,18 @@ class ElementsEndpointTest extends TestCase
[
'id' => $firstChildElement->getId(),
'title' => 'Avodah Foundations',
'description' => 'Foundations for steady avodah',
],
[
'id' => $secondChildElement->getId(),
'title' => 'Daily Practice',
'description' => 'Daily practices for growth',
],
],
'element' => [
'id' => $element->getId(),
'title' => 'Baderech HaAvodah',
'description' => 'A structured path for growth',
],
]);
}