eZ\Publish\Core\REST\Server\Tests\Input\Parser\PolicyCreateTest::testParseExceptionOnMissingLimitationIdentifier PHP Method

testParseExceptionOnMissingLimitationIdentifier() public method

Test PolicyCreate parser throwing exception on missing identifier.
    public function testParseExceptionOnMissingLimitationIdentifier()
    {
        $inputArray = array('module' => 'content', 'function' => 'delete', 'limitations' => array('limitation' => array(array('values' => array('ref' => array(array('_href' => 1), array('_href' => 2), array('_href' => 3)))))));
        $policyCreate = $this->getParser();
        $policyCreate->parse($inputArray, $this->getParsingDispatcherMock());
    }