eZ\Publish\Core\REST\Server\Tests\Input\Parser\ContentObjectStatesTest::testParseExceptionOnMissingHref PHP Method

testParseExceptionOnMissingHref() public method

Test ContentObjectStates parser throwing exception on missing href.
    public function testParseExceptionOnMissingHref()
    {
        $inputArray = array('ObjectState' => array(array('_href' => '/content/objectstategroups/42/objectstates/21'), array()));
        $objectState = $this->getParser();
        $objectState->parse($inputArray, $this->getParsingDispatcherMock());
    }