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

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

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

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

Защищенные методы

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

Приватные методы

Метод Описание
getFieldTypeParserMock ( ) : eZ\Publish\Core\REST\Common\Input\FieldTypeParser; Get the field type parser mock object.

Описание методов

getContentType() защищенный Метод

Get the content type used in UserCreate parser.
protected getContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentType
Результат eZ\Publish\API\Repository\Values\ContentType\ContentType

getContentTypeServiceMock() защищенный Метод

Get the content type service mock object.
protected getContentTypeServiceMock ( ) : eZ\Publish\API\Repository\ContentTypeService
Результат eZ\Publish\API\Repository\ContentTypeService

getParseHrefExpectationsMap() публичный Метод

getUserServiceMock() защищенный Метод

Get the user service mock object.
protected getUserServiceMock ( ) : eZ\Publish\API\Repository\UserService
Результат eZ\Publish\API\Repository\UserService

internalGetParser() защищенный Метод

Returns the UserCreate parser.
protected internalGetParser ( ) : eZ\Publish\Core\REST\Server\Input\Parser\UserCreate
Результат eZ\Publish\Core\REST\Server\Input\Parser\UserCreate

testParse() публичный Метод

Tests the UserCreate parser.
public testParse ( )

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.