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

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

공개 메소드들

메소드 설명
getParseHrefExpectationsMap ( )
providerForTestParseFailureInvalidDate ( )
providerForTestParseFailureInvalidHref ( )
testParseFailureInvalidDate ( $element, $exceptionMessage ) Tests that invalid dates will fail at parsing.
testParseFailureInvalidHref ( $element, $exceptionMessage ) Tests that invalid _href attribute throw the appropriate exception.
testParseValid ( ) : RestContentMetadataUpdateStruct Tests the ContentUpdate parser.
testParserResultOwner ( RestContentMetadataUpdateStruct $result ) Test for valid owner ID value in result.

보호된 메소드들

메소드 설명
getContentUpdateStruct ( ) : RestContentMetadataUpdateStruct Returns a valid RestContentMetadataUpdateStruct that matches the structure from getValidInputData().
getValidInputData ( ) : array Returns an array of valid input data for the parser.
internalGetParser ( ) : ContentUpdate Returns the ContentUpdate parser.

메소드 상세

getContentUpdateStruct() 보호된 메소드

Returns a valid RestContentMetadataUpdateStruct that matches the structure from getValidInputData().

getParseHrefExpectationsMap() 공개 메소드

getValidInputData() 보호된 메소드

Returns an array of valid input data for the parser.
protected getValidInputData ( ) : array
리턴 array

internalGetParser() 보호된 메소드

Returns the ContentUpdate parser.
protected internalGetParser ( ) : ContentUpdate
리턴 eZ\Publish\Core\REST\Server\Input\Parser\ContentUpdate

providerForTestParseFailureInvalidDate() 공개 메소드

providerForTestParseFailureInvalidHref() 공개 메소드

testParseFailureInvalidDate() 공개 메소드

Tests that invalid dates will fail at parsing.
public testParseFailureInvalidDate ( $element, $exceptionMessage )

testParseFailureInvalidHref() 공개 메소드

Tests that invalid _href attribute throw the appropriate exception.
public testParseFailureInvalidHref ( $element, $exceptionMessage )

testParseValid() 공개 메소드

Tests the ContentUpdate parser.

testParserResultOwner() 공개 메소드

Test for valid owner ID value in result.