diff --git a/spec/Menu/ContentManagementMenuBuilderSpec.php b/spec/Menu/ContentManagementMenuBuilderSpec.php index 6fbdff45..ab5f1ec5 100755 --- a/spec/Menu/ContentManagementMenuBuilderSpec.php +++ b/spec/Menu/ContentManagementMenuBuilderSpec.php @@ -51,6 +51,14 @@ public function it_build_menu( $cmsRootMenuItem->setLabel('bitbag_sylius_cms_plugin.ui.collections')->willReturn($cmsRootMenuItem); $cmsRootMenuItem->setLabelAttribute('icon', 'grid layout')->shouldBeCalled(); + $cmsRootMenuItem + ->addChild('templates', ['route' => 'bitbag_sylius_cms_plugin_admin_template_index']) + ->willReturn($cmsRootMenuItem) + ; + $cmsRootMenuItem->setLabel('bitbag_sylius_cms_plugin.ui.templates')->willReturn($cmsRootMenuItem); + $cmsRootMenuItem->setLabelAttribute('icon', 'clone')->shouldBeCalled(); + ; + $cmsRootMenuItem ->addChild('media', ['route' => 'bitbag_sylius_cms_plugin_admin_media_index']) ->willReturn($cmsRootMenuItem) diff --git a/src/Entity/Template.php b/src/Entity/Template.php index 38c46092..4a03ee2f 100644 --- a/src/Entity/Template.php +++ b/src/Entity/Template.php @@ -12,13 +12,13 @@ final class Template implements TemplateInterface { - private ?int $id; + protected ?int $id; - private ?string $name; + protected ?string $name; - private ?string $type; + protected ?string $type; - private array $contentElements = []; + protected array $contentElements = []; public function getId(): ?int {