eZ\Publish\Core\REST\Client\Tests\Input\Parser\ObjectStateGroupTest::testParse PHP Method

testParse() public method

Tests the ObjectStateGroup parser.
public testParse ( ) : eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
return eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
    public function testParse()
    {
        $objectStateGroupParser = $this->getParser();
        $inputArray = array('_href' => '/content/objectstategroups/42', 'identifier' => 'test-group', 'defaultLanguageCode' => 'eng-GB', 'languageCodes' => 'eng-GB,eng-US', 'names' => array('value' => array(array('_languageCode' => 'eng-GB', '#text' => 'Test group EN'), array('_languageCode' => 'eng-US', '#text' => 'Test group EN US'))), 'descriptions' => array('value' => array(array('_languageCode' => 'eng-GB', '#text' => 'Test group description EN'), array('_languageCode' => 'eng-US', '#text' => 'Test group description EN US'))));
        $result = $objectStateGroupParser->parse($inputArray, $this->getParsingDispatcherMock());
        $this->assertNotNull($result);
        return $result;
    }