eZ\Publish\Core\REST\Server\Tests\Input\Parser\ObjectStateGroupCreateTest::testParseExceptionOnInvalidNames PHP Method

testParseExceptionOnInvalidNames() public method

Test ObjectStateGroupCreate parser throwing exception on invalid names structure.
    public function testParseExceptionOnInvalidNames()
    {
        $inputArray = array('identifier' => 'test-group', 'defaultLanguageCode' => 'eng-GB', 'names' => array(), 'descriptions' => array('value' => array(array('_languageCode' => 'eng-GB', '#text' => 'Test group description'))));
        $objectStateGroupCreate = $this->getParser();
        $objectStateGroupCreate->parse($inputArray, $this->getParsingDispatcherMock());
    }