PHP 클래스 eZ\Publish\Core\REST\Server\Tests\Input\Parser\ContentCreateTest

상속: extends BaseTest
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

공개 메소드들

메소드 설명
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.