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

@ -140,6 +140,7 @@ class ElementControllerTest extends TestCase
'https://www.youtube.com/watch?v=yHx-r4p6hHU&t=1s',
$body['element']['youtubeUrl'],
);
$this->assertNull($body['parentElement']);
$this->assertSame([
[
'id' => $firstChildElement->getId(),
@ -202,6 +203,11 @@ class ElementControllerTest extends TestCase
$this->assertEquals(200, $response->getStatusCode());
$body = json_decode($response->getContent(), true);
$this->assertSame([
'id' => $parentElement->getId(),
'title' => 'Baderech HaAvodah',
'description' => 'A structured path for growth',
], $body['parentElement']);
$this->assertSame([
[
'id' => $firstChildElement->getId(),