/** * @param string $nodeId * @param string $parentId * @param string $routePattern * @param string $name * @param string $language * @param string $type * * @return NodeInterface */ protected function generateNode($nodeId, $parentId, $routePattern, $name, $language, $type = NodeInterface::TYPE_DEFAULT) { $node = new Node(); $node->setNodeId($nodeId); $node->setNodeType($type); $node->setSiteId('2'); $node->setParentId($parentId); $node->setPath('-'); $node->setRoutePattern($routePattern); $node->setName($name); $node->setVersion(1); $node->setLanguage($language); $node->setDeleted(false); $node->setCreatedAt(new \Datetime()); $node->setUpdatedAt(new \Datetime()); $node->setStatus($this->statusPublished); return $node; }