PHP Class eZ\Publish\Core\REST\Server\Tests\Output\ValueObjectVisitor\ContentFieldValidationExceptionTest

Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
testResultContainsErrorDescription ( string $result ) Test if result contains ErrorMessage element and description.
testResultContainsErrorDetails ( string $result ) Test if result contains ErrorMessage element and details.
testVisit ( ) : string Test the ContentFieldValidationException visitor.

Protected Methods

Method Description
getException ( ) : Exception Gets the exception.
getExpectedDescription ( ) : string Get expected description.
getExpectedMessage ( ) : string Get expected message.
getExpectedStatusCode ( ) : integer Get expected status code.
internalGetVisitor ( ) : ContentFieldValidationException Gets the exception visitor.

Method Details

getException() protected method

Gets the exception.
protected getException ( ) : Exception
return Exception

getExpectedDescription() protected method

Get expected description.
protected getExpectedDescription ( ) : string
return string

getExpectedMessage() protected method

Get expected message.
protected getExpectedMessage ( ) : string
return string

getExpectedStatusCode() protected method

Get expected status code.
protected getExpectedStatusCode ( ) : integer
return integer

internalGetVisitor() protected method

Gets the exception visitor.
protected internalGetVisitor ( ) : ContentFieldValidationException
return eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor\ContentFieldValidationException

testResultContainsErrorDescription() public method

Test if result contains ErrorMessage element and description.
public testResultContainsErrorDescription ( string $result )
$result string

testResultContainsErrorDetails() public method

Test if result contains ErrorMessage element and details.
public testResultContainsErrorDetails ( string $result )
$result string

testVisit() public method

Test the ContentFieldValidationException visitor.
public testVisit ( ) : string
return string