PHP Class eZ\Publish\Core\REST\Server\Tests\Input\Parser\ContentUpdateTest

Inheritance: extends BaseTest
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Method Details

getContentUpdateStruct() protected méthode

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

getParseHrefExpectationsMap() public méthode

getValidInputData() protected méthode

Returns an array of valid input data for the parser.
protected getValidInputData ( ) : array
Résultat array

internalGetParser() protected méthode

Returns the ContentUpdate parser.
protected internalGetParser ( ) : ContentUpdate
Résultat eZ\Publish\Core\REST\Server\Input\Parser\ContentUpdate

providerForTestParseFailureInvalidDate() public méthode

providerForTestParseFailureInvalidHref() public méthode

testParseFailureInvalidDate() public méthode

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

testParseFailureInvalidHref() public méthode

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

testParseValid() public méthode

Tests the ContentUpdate parser.

testParserResultOwner() public méthode

Test for valid owner ID value in result.