eZ\Publish\Core\REST\Server\Tests\Input\Parser\ContentCreateTest::testParseExceptionOnInvalidFields PHP Method

testParseExceptionOnInvalidFields() public method

Test ContentCreate parser throwing exception on invalid fields data.
    public function testParseExceptionOnInvalidFields()
    {
        $inputArray = array('ContentType' => array('_href' => '/content/types/13'), 'mainLanguageCode' => 'eng-US', 'LocationCreate' => array(), 'Section' => array('_href' => '/content/sections/4'), 'alwaysAvailable' => 'true', 'remoteId' => 'remoteId12345678', 'User' => array('_href' => '/user/users/14'));
        $contentCreate = $this->getParser();
        $contentCreate->parse($inputArray, $this->getParsingDispatcherMock());
    }