eZ\Publish\Core\Repository\Tests\Service\Integration\ContentBase::testNewContentCreateStruct PHP Method

testNewContentCreateStruct() public method

Test for the newContentCreateStruct() method.
public testNewContentCreateStruct ( ) : eZ\Publish\API\Repository\Values\Content\ContentCreateStruct
return 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);
    }
ContentBase