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