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

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

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

Метод Описание
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.