save() публичный Метод

public save ( PHPCR\NodeInterface $node, $data, $webspaceKey, $languageCode )
$node PHPCR\NodeInterface
 public function testSaveSetLocaleAndWebspace()
 {
     $structure = $this->prophesize(StructureInterface::class);
     $structure->getProperties()->willReturn([]);
     $structure->setLanguageCode(null)->willReturn(null);
     $structure->setLanguageCode('de')->shouldBeCalled();
     $structureManager = $this->prophesize(StructureManagerInterface::class);
     $structureManager->getStructure(ExcerptStructureExtension::EXCERPT_EXTENSION_NAME)->willReturn($structure->reveal());
     $contentTypeManager = $this->prophesize(ContentTypeManagerInterface::class);
     $factory = $this->prophesize(Factory::class);
     $node = $this->prophesize(NodeInterface::class);
     $excerptExtension = new ExcerptStructureExtension($structureManager->reveal(), $contentTypeManager->reveal(), $factory->reveal());
     $excerptExtension->save($node->reveal(), [], 'sulu_io', 'de');
 }