Skip to content

Commit

Permalink
OP-463: PHPSpec menu correction
Browse files Browse the repository at this point in the history
  • Loading branch information
jkindly committed Aug 2, 2024
1 parent 5778540 commit 684dc18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/Menu/ContentManagementMenuBuilderSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ public function it_build_menu(
$cmsRootMenuItem->setLabel('bitbag_sylius_cms_plugin.ui.media')->willReturn($cmsRootMenuItem);
$cmsRootMenuItem->setLabelAttribute('icon', 'file')->shouldBeCalled();

$menu->getChildren()->willReturn(['marketing' => $cmsRootMenuItem]);
$menu->getChild('bitbag_cms')->willReturn($cmsRootMenuItem);

$menu->setChildren(['marketing' => $cmsRootMenuItem, 'bitbag_cms' => $cmsRootMenuItem])->willReturn($menu);

$this->buildMenu($menuBuilderEvent);
}
}

0 comments on commit 684dc18

Please sign in to comment.