eZ\Publish\Core\Repository\Tests\Service\Integration\ContentTypeBase::testNewContentTypeCreateStruct PHP Method

testNewContentTypeCreateStruct() public method

Test for the newContentTypeCreateStruct() method.
public testNewContentTypeCreateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct
return eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct
    public function testNewContentTypeCreateStruct()
    {
        /* BEGIN: Use Case */
        $contentTypeService = $this->repository->getContentTypeService();
        $contentTypeCreateStruct = $contentTypeService->newContentTypeCreateStruct('new-type');
        /* END: Use Case */
        $this->assertInstanceOf('eZ\\Publish\\API\\Repository\\Values\\ContentType\\ContentTypeCreateStruct', $contentTypeCreateStruct);
        return $contentTypeCreateStruct;
    }
ContentTypeBase