public function testParseExceptionOnMissingMainLanguageCode() { $inputArray = array('ContentType' => array('_href' => '/content/types/13'), 'LocationCreate' => array(), 'Section' => array('_href' => '/content/sections/4'), 'alwaysAvailable' => 'true', 'remoteId' => 'remoteId12345678', 'User' => array('_href' => '/user/users/14'), 'fields' => array('field' => array(array('fieldDefinitionIdentifier' => 'subject', 'fieldValue' => array()), array('fieldDefinitionIdentifier' => 'author', 'fieldValue' => array())))); $contentCreate = $this->getParser(); $contentCreate->parse($inputArray, $this->getParsingDispatcherMock()); }