test parent navigation
This commit is contained in:
parent
afc61cbd38
commit
3a9116dc3f
3 changed files with 69 additions and 0 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue