test parent navigation

This commit is contained in:
Yisroel Baum 2026-06-22 10:01:31 +03:00
parent afc61cbd38
commit 3a9116dc3f
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
3 changed files with 69 additions and 0 deletions

View file

@ -94,6 +94,7 @@ class ElementsEndpointTest extends TestCase
'longPdfPath' => '/assets/pdfs/baderech-long.pdf',
'youtubeUrl' => $sampleYoutubeUrl,
],
'parentElement' => null,
'siblingElements' => [
[
'id' => $element->getId(),
@ -151,6 +152,11 @@ class ElementsEndpointTest extends TestCase
);
$response->assertOk();
$response->assertJsonPath('parentElement', [
'id' => $parentElement->getId(),
'title' => 'Baderech HaAvodah',
'description' => 'A structured path for growth',
]);
$response->assertJsonPath('siblingElements', [
[
'id' => $firstChildElement->getId(),