protected function generateNodeGlobal($htmlContent, $name, $language, $routePattern)
    {
        $nodeCommunityBlock = new Block();
        $nodeCommunityBlock->setLabel('Wysiwyg');
        $nodeCommunityBlock->setLanguage($language);
        $nodeCommunityBlock->setComponent(TinyMCEWysiwygStrategy::NAME);
        $nodeCommunityBlock->setAttributes(array(
            "htmlContent" => $htmlContent
        ));

        $nodeCommunityBlock = $this->generateBlock($nodeCommunityBlock);

        $main = new Area();
        $main->addBlock($nodeCommunityBlock);

        $nodeCommunity = $this->createBaseNode();
        $nodeCommunity->setArea('main', $main);

        $nodeCommunity->setNodeId('fixture_page_community');
        $nodeCommunity->setLanguage($language);
        $nodeCommunity->setName($name);
        $nodeCommunity->setVersionName($this->getVersionName($nodeCommunity));
        $nodeCommunity->setParentId(NodeInterface::ROOT_NODE_ID);
        $nodeCommunity->setOrder(3);
        $nodeCommunity->setRoutePattern($routePattern);
        $nodeCommunity->setInFooter(false);
        $nodeCommunity->setInMenu(true);

        return $nodeCommunity;
    }
protected function generateNodeGlobal($htmlContent, $name, $language, $routePattern)
    {
        $nodeCommunityBlock = new Block();
        $nodeCommunityBlock->setLabel('Wysiwyg');
        $nodeCommunityBlock->setLanguage($language);
        $nodeCommunityBlock->setComponent(TinyMCEWysiwygStrategy::NAME);
        $nodeCommunityBlock->setAttributes(array(
            "htmlContent" => $htmlContent
        ));

        $nodeCommunityBlock = $this->generateBlock($nodeCommunityBlock);

        $main = new Area();
        $main->addBlock($nodeCommunityBlock);

        $nodeCommunity = $this->createBaseNode();
        $nodeCommunity->setArea('main', $main);

        $nodeCommunity->setNodeId('fixture_page_community');
        $nodeCommunity->setLanguage($language);
        $nodeCommunity->setName($name);
        $nodeCommunity->setVersionName($this->getVersionName($nodeCommunity));
        $nodeCommunity->setParentId(NodeInterface::ROOT_NODE_ID);
        $nodeCommunity->setOrder(3);
        $nodeCommunity->setRoutePattern($routePattern);
        $nodeCommunity->setInFooter(false);
        $nodeCommunity->setInMenu(true);

        return $nodeCommunity;
    }
@param string $htmlContent
@param string $name
@param string $language
@param string $routePattern

@return Node