eZ\Publish\Core\REST\Server\Tests\Input\Parser\RoleAssignInputTest::testParseExceptionOnInvalidRole PHP Method

testParseExceptionOnInvalidRole() public method

Test RoleAssignInput parser throwing exception on invalid Role.
    public function testParseExceptionOnInvalidRole()
    {
        $inputArray = array('Role' => array(), 'limitation' => array('_identifier' => 'Section', 'values' => array('ref' => array(array('_href' => '/content/sections/1'), array('_href' => '/content/sections/2'), array('_href' => '/content/sections/3')))));
        $roleAssignInput = $this->getParser();
        $roleAssignInput->parse($inputArray, $this->getParsingDispatcherMock());
    }