eZ\Publish\Core\REST\Server\Tests\Input\Parser\VersionUpdateTest::getFieldTypeParserMock PHP Method

getFieldTypeParserMock() private method

Get the field type parser mock object.
private getFieldTypeParserMock ( ) : eZ\Publish\Core\REST\Common\Input\FieldTypeParser;
return eZ\Publish\Core\REST\Common\Input\FieldTypeParser;
    private function getFieldTypeParserMock()
    {
        $fieldTypeParserMock = $this->getMock('\\eZ\\Publish\\Core\\REST\\Common\\Input\\FieldTypeParser', array(), array($this->getContentServiceMock(), $this->getMock('eZ\\Publish\\Core\\REST\\Client\\ContentTypeService', array(), array(), '', false), $this->getMock('eZ\\Publish\\Core\\REST\\Client\\FieldTypeService', array(), array(), '', false)), '', false);
        $fieldTypeParserMock->expects($this->any())->method('parseFieldValue')->with(42, 'subject', array())->will($this->returnValue('foo'));
        return $fieldTypeParserMock;
    }