eZ\Publish\Core\REST\Server\Tests\Input\Parser\ContentCreateTest::getContentType PHP Method

getContentType() protected method

Get the content type used in ContentCreate parser.
protected getContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentType
return eZ\Publish\API\Repository\Values\ContentType\ContentType
    protected function getContentType()
    {
        return new ContentType(array('id' => 13, 'identifier' => 'some_class', 'fieldDefinitions' => array(new FieldDefinition(array('id' => 42, 'identifier' => 'subject', 'fieldTypeIdentifier' => 'ezstring')), new FieldDefinition(array('id' => 43, 'identifier' => 'author', 'fieldTypeIdentifier' => 'ezstring')))));
    }