eZ\Publish\Core\REST\Server\Tests\Input\Parser\ContentTypeCreateTest::testParseExceptionOnInvalidFieldDefinition PHP Method

testParseExceptionOnInvalidFieldDefinition() public method

Test ContentTypeCreate parser throwing exception on invalid FieldDefinitions.
    public function testParseExceptionOnInvalidFieldDefinition()
    {
        $inputArray = $this->getInputArray();
        $inputArray['FieldDefinitions']['FieldDefinition'] = array('hi there');
        $contentTypeCreate = $this->getParser();
        $contentTypeCreate->parse($inputArray, $this->getParsingDispatcherMock());
    }