eZ\Publish\Core\REST\Server\Tests\Input\Parser\UserGroupCreateTest::testParseExceptionOnInvalidContentType PHP Method

testParseExceptionOnInvalidContentType() public method

Test UserGroupCreate parser throwing exception on invalid ContentType.
    public function testParseExceptionOnInvalidContentType()
    {
        $inputArray = array('ContentType' => array(), 'mainLanguageCode' => 'eng-US', 'Section' => array('_href' => '/content/sections/4'), 'remoteId' => 'remoteId12345678', 'fields' => array('field' => array(array('fieldDefinitionIdentifier' => 'name', 'fieldValue' => array()))));
        $userGroupCreate = $this->getParser();
        $userGroupCreate->parse($inputArray, $this->getParsingDispatcherMock());
    }