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

Inheritance: extends BaseTest
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
getParseHrefExpectationsMap ( )
testParse ( ) Tests the UserCreate parser.
testParseExceptionOnInvalidContentType ( ) Test UserCreate parser throwing exception on invalid ContentType.
testParseExceptionOnInvalidFieldDefinitionIdentifier ( ) Test UserCreate parser throwing exception on invalid field definition identifier.
testParseExceptionOnInvalidFields ( ) Test UserCreate parser throwing exception on invalid fields data.
testParseExceptionOnInvalidSection ( ) Test UserCreate parser throwing exception on invalid Section.
testParseExceptionOnMissingEmail ( ) Test UserCreate parser throwing exception on missing email.
testParseExceptionOnMissingFieldDefinitionIdentifier ( ) Test UserCreate parser throwing exception on missing field definition identifier.
testParseExceptionOnMissingFieldValue ( ) Test UserCreate parser throwing exception on missing field value.
testParseExceptionOnMissingLogin ( ) Test UserCreate parser throwing exception on missing login.
testParseExceptionOnMissingMainLanguageCode ( ) Test UserCreate parser throwing exception on missing mainLanguageCode.
testParseExceptionOnMissingPassword ( ) Test UserCreate parser throwing exception on missing password.

Protected Methods

Method Description
getContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentType Get the content type used in UserCreate parser.
getContentTypeServiceMock ( ) : eZ\Publish\API\Repository\ContentTypeService Get the content type service mock object.
getUserServiceMock ( ) : eZ\Publish\API\Repository\UserService Get the user service mock object.
internalGetParser ( ) : eZ\Publish\Core\REST\Server\Input\Parser\UserCreate Returns the UserCreate parser.

Private Methods

Method Description
getFieldTypeParserMock ( ) : eZ\Publish\Core\REST\Common\Input\FieldTypeParser; Get the field type parser mock object.

Method Details

getContentType() protected method

Get the content type used in UserCreate parser.
protected getContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentType
return eZ\Publish\API\Repository\Values\ContentType\ContentType

getContentTypeServiceMock() protected method

Get the content type service mock object.
protected getContentTypeServiceMock ( ) : eZ\Publish\API\Repository\ContentTypeService
return eZ\Publish\API\Repository\ContentTypeService

getParseHrefExpectationsMap() public method

getUserServiceMock() protected method

Get the user service mock object.
protected getUserServiceMock ( ) : eZ\Publish\API\Repository\UserService
return eZ\Publish\API\Repository\UserService

internalGetParser() protected method

Returns the UserCreate parser.
protected internalGetParser ( ) : eZ\Publish\Core\REST\Server\Input\Parser\UserCreate
return eZ\Publish\Core\REST\Server\Input\Parser\UserCreate

testParse() public method

Tests the UserCreate parser.
public testParse ( )

testParseExceptionOnInvalidContentType() public method

Test UserCreate parser throwing exception on invalid ContentType.

testParseExceptionOnInvalidFieldDefinitionIdentifier() public method

Test UserCreate parser throwing exception on invalid field definition identifier.

testParseExceptionOnInvalidFields() public method

Test UserCreate parser throwing exception on invalid fields data.

testParseExceptionOnInvalidSection() public method

Test UserCreate parser throwing exception on invalid Section.

testParseExceptionOnMissingEmail() public method

Test UserCreate parser throwing exception on missing email.

testParseExceptionOnMissingFieldDefinitionIdentifier() public method

Test UserCreate parser throwing exception on missing field definition identifier.

testParseExceptionOnMissingFieldValue() public method

Test UserCreate parser throwing exception on missing field value.

testParseExceptionOnMissingLogin() public method

Test UserCreate parser throwing exception on missing login.

testParseExceptionOnMissingMainLanguageCode() public method

Test UserCreate parser throwing exception on missing mainLanguageCode.

testParseExceptionOnMissingPassword() public method

Test UserCreate parser throwing exception on missing password.