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

testParseExceptionOnInvalidSection() public method

Test ContentCreate parser throwing exception on invalid Section.
    public function testParseExceptionOnInvalidSection()
    {
        $inputArray = array('ContentType' => array('_href' => '/content/types/13'), 'mainLanguageCode' => 'eng-US', 'LocationCreate' => array(), 'Section' => array(), '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());
    }