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

public save ( PHPCR\NodeInterface $node, $data, $webspaceKey, $languageCode )
$node PHPCR\NodeInterface
Пример #1
0
 public function testSaveWithoutData()
 {
     $content = [];
     $this->node->setProperty(Argument::any(), Argument::any())->will(function ($arguments) use(&$content) {
         $content[$arguments[0]] = $arguments[1];
     });
     $data = [];
     $this->extension->setLanguageCode('de', 'i18n', null);
     $this->extension->save($this->node->reveal(), $data, 'default', 'de');
     $this->assertEquals(['i18n:de-seo-title' => '', 'i18n:de-seo-description' => '', 'i18n:de-seo-keywords' => '', 'i18n:de-seo-canonicalUrl' => '', 'i18n:de-seo-noIndex' => false, 'i18n:de-seo-noFollow' => false, 'i18n:de-seo-hideInSitemap' => false], $content);
 }