public testNewContentCreateStruct ( ) : eZ\Publish\API\Repository\Values\Content\ContentCreateStruct | ||
Résultat | eZ\Publish\API\Repository\Values\Content\ContentCreateStruct |
public function testNewContentCreateStruct()
{
/* BEGIN: Use Case */
$contentService = $this->repository->getContentService();
$contentTypeService = $this->repository->getContentTypeService();
$folderContentType = $contentTypeService->loadContentType(1);
$contentCreateStruct = $contentService->newContentCreateStruct($folderContentType, 'eng-GB');
/* END: Use Case */
$this->assertInstanceOf('eZ\\Publish\\API\\Repository\\Values\\Content\\ContentCreateStruct', $contentCreateStruct);
return array('contentType' => $folderContentType, 'contentCreateStruct' => $contentCreateStruct);
}