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

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

Méthodes publiques

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

Méthodes protégées

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

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

Method Details

getContentType() protected méthode

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

getContentTypeServiceMock() protected méthode

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

getParseHrefExpectationsMap() public méthode

getUserServiceMock() protected méthode

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

internalGetParser() protected méthode

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

testParse() public méthode

Tests the UserCreate parser.
public testParse ( )

testParseExceptionOnInvalidContentType() public méthode

Test UserCreate parser throwing exception on invalid ContentType.

testParseExceptionOnInvalidFieldDefinitionIdentifier() public méthode

Test UserCreate parser throwing exception on invalid field definition identifier.

testParseExceptionOnInvalidFields() public méthode

Test UserCreate parser throwing exception on invalid fields data.

testParseExceptionOnInvalidSection() public méthode

Test UserCreate parser throwing exception on invalid Section.

testParseExceptionOnMissingEmail() public méthode

Test UserCreate parser throwing exception on missing email.

testParseExceptionOnMissingFieldDefinitionIdentifier() public méthode

Test UserCreate parser throwing exception on missing field definition identifier.

testParseExceptionOnMissingFieldValue() public méthode

Test UserCreate parser throwing exception on missing field value.

testParseExceptionOnMissingLogin() public méthode

Test UserCreate parser throwing exception on missing login.

testParseExceptionOnMissingMainLanguageCode() public méthode

Test UserCreate parser throwing exception on missing mainLanguageCode.

testParseExceptionOnMissingPassword() public méthode

Test UserCreate parser throwing exception on missing password.