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

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

        $main = new Area();
        $main->addBlock($nodeHomeBlock);
        $main->addBlock($this->fixture->getReference('Wysiwyg logo'.'-'.$language));

        $nodeHome = $this->createBaseNode();
        $keyReference = "node-".NodeInterface::ROOT_NODE_ID.'-'.$language.'-'.$this->version;
        if($this->fixture->hasReference($keyReference)) {
            $nodeHome = $this->fixture->getReference($keyReference);

        }
        $nodeHome->setArea('main', $main);

        $nodeHome->setLanguage($language);
        $nodeHome->setNodeId(NodeInterface::ROOT_NODE_ID);
        $nodeHome->setCreatedBy('fake_admin');
        $nodeHome->setParentId(NodeInterface::ROOT_PARENT_ID);
        $nodeHome->setOrder(0);
        $nodeHome->setRoutePattern($routePattern);
        $nodeHome->setInFooter(false);
        $nodeHome->setInMenu(true);
        $nodeHome->setSitemapChangefreq('hourly');
        $nodeHome->setSitemapPriority('0.8');
        $nodeHome->setName('Orchestra ?');
        $nodeHome->setVersionName($this->getVersionName($nodeHome));
        $nodeHome->setVersion($this->version);
        $nodeHome->setStatus($this->fixture->getReference($this->status));

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

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

        $main = new Area();
        $main->addBlock($nodeHomeBlock);
        $main->addBlock($this->fixture->getReference('Wysiwyg logo'.'-'.$language));

        $nodeHome = $this->createBaseNode();
        $keyReference = "node-".NodeInterface::ROOT_NODE_ID.'-'.$language.'-'.$this->version;
        if($this->fixture->hasReference($keyReference)) {
            $nodeHome = $this->fixture->getReference($keyReference);

        }
        $nodeHome->setArea('main', $main);

        $nodeHome->setLanguage($language);
        $nodeHome->setNodeId(NodeInterface::ROOT_NODE_ID);
        $nodeHome->setCreatedBy('fake_admin');
        $nodeHome->setParentId(NodeInterface::ROOT_PARENT_ID);
        $nodeHome->setOrder(0);
        $nodeHome->setRoutePattern($routePattern);
        $nodeHome->setInFooter(false);
        $nodeHome->setInMenu(true);
        $nodeHome->setSitemapChangefreq('hourly');
        $nodeHome->setSitemapPriority('0.8');
        $nodeHome->setName('Orchestra ?');
        $nodeHome->setVersionName($this->getVersionName($nodeHome));
        $nodeHome->setVersion($this->version);
        $nodeHome->setStatus($this->fixture->getReference($this->status));

        return $nodeHome;
    }
@param string $htmlContent
@param string $language
@param string $routePattern

@return Node