saveExtension() public method

. this should be handled in a listener or in the form, or something {@inheritdoc}
public saveExtension ( $uuid, $data, $extensionName, $webspaceKey, $locale, $userId )
示例#1
0
 public function testTranslatedNodeNotFound()
 {
     $data = ['title' => 'Test', 'url' => '/test/test', 'blog' => 'Thats a good test'];
     $structure = $this->mapper->save($data, 'default', 'sulu_io', 'en', 1);
     $dataTest2DE = ['a' => 'de test2 a', 'b' => 'de test2 b'];
     $this->setExpectedException('Sulu\\Component\\Content\\Exception\\TranslatedNodeNotFoundException', 'Node "' . $structure->getUuid() . '" not found in localization "de"');
     $this->mapper->saveExtension($structure->getUuid(), $dataTest2DE, 'test2', 'sulu_io', 'de', 1);
 }