PHP Класс eZ\Publish\Core\REST\Server\Tests\Input\Parser\ContentCreateTest

Наследование: extends BaseTest
Показать файл Открыть проект

Открытые методы

Метод Описание
getParseHrefExpectationsMap ( )
testParse ( ) Tests the ContentCreate parser.
testParseExceptionOnInvalidContentType ( ) Test ContentCreate parser throwing exception on invalid ContentType.
testParseExceptionOnInvalidFieldDefinitionIdentifier ( ) Test ContentCreate parser throwing exception on invalid field definition identifier.
testParseExceptionOnInvalidFields ( ) Test ContentCreate parser throwing exception on invalid fields data.
testParseExceptionOnInvalidSection ( ) Test ContentCreate parser throwing exception on invalid Section.
testParseExceptionOnInvalidUser ( ) Test ContentCreate parser throwing exception on invalid User.
testParseExceptionOnMissingContentType ( ) Test ContentCreate parser throwing exception on missing ContentType.
testParseExceptionOnMissingFieldDefinitionIdentifier ( ) Test ContentCreate parser throwing exception on missing field definition identifier.
testParseExceptionOnMissingFieldValue ( ) Test ContentCreate parser throwing exception on missing field value.
testParseExceptionOnMissingLocationCreate ( ) Test ContentCreate parser throwing exception on missing LocationCreate.
testParseExceptionOnMissingMainLanguageCode ( ) Test ContentCreate parser throwing exception on missing mainLanguageCode.

Защищенные методы

Метод Описание
getContentServiceMock ( ) : eZ\Publish\API\Repository\ContentService Get the content service mock object.
getContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentType Get the content type used in ContentCreate parser.
getContentTypeServiceMock ( ) : eZ\Publish\API\Repository\ContentTypeService Get the content type service mock object.
internalGetParser ( ) : ContentCreate Returns the ContentCreate parser.

Приватные методы

Метод Описание
getFieldTypeParserMock ( ) : eZ\Publish\Core\REST\Common\Input\FieldTypeParser; Get the field type parser mock object.
getLocationCreateParserMock ( ) : LocationCreate Returns the LocationCreate parser mock object.

Описание методов

getContentServiceMock() защищенный Метод

Get the content service mock object.
protected getContentServiceMock ( ) : eZ\Publish\API\Repository\ContentService
Результат eZ\Publish\API\Repository\ContentService

getContentType() защищенный Метод

Get the content type used in ContentCreate parser.
protected getContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentType
Результат eZ\Publish\API\Repository\Values\ContentType\ContentType

getContentTypeServiceMock() защищенный Метод

Get the content type service mock object.
protected getContentTypeServiceMock ( ) : eZ\Publish\API\Repository\ContentTypeService
Результат eZ\Publish\API\Repository\ContentTypeService

getParseHrefExpectationsMap() публичный Метод

internalGetParser() защищенный Метод

Returns the ContentCreate parser.
protected internalGetParser ( ) : ContentCreate
Результат eZ\Publish\Core\REST\Server\Input\Parser\ContentCreate

testParse() публичный Метод

Tests the ContentCreate parser.
public testParse ( )

testParseExceptionOnInvalidContentType() публичный Метод

Test ContentCreate parser throwing exception on invalid ContentType.

testParseExceptionOnInvalidFieldDefinitionIdentifier() публичный Метод

Test ContentCreate parser throwing exception on invalid field definition identifier.

testParseExceptionOnInvalidFields() публичный Метод

Test ContentCreate parser throwing exception on invalid fields data.

testParseExceptionOnInvalidSection() публичный Метод

Test ContentCreate parser throwing exception on invalid Section.

testParseExceptionOnInvalidUser() публичный Метод

Test ContentCreate parser throwing exception on invalid User.

testParseExceptionOnMissingContentType() публичный Метод

Test ContentCreate parser throwing exception on missing ContentType.

testParseExceptionOnMissingFieldDefinitionIdentifier() публичный Метод

Test ContentCreate parser throwing exception on missing field definition identifier.

testParseExceptionOnMissingFieldValue() публичный Метод

Test ContentCreate parser throwing exception on missing field value.

testParseExceptionOnMissingLocationCreate() публичный Метод

Test ContentCreate parser throwing exception on missing LocationCreate.

testParseExceptionOnMissingMainLanguageCode() публичный Метод

Test ContentCreate parser throwing exception on missing mainLanguageCode.