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

testParse() public method

Tests the parsing of RoleAssignmentList.
public testParse ( )
    public function testParse()
    {
        $roleAssignmentListParser = $this->getParser();
        $inputArray = array('RoleAssignment' => array(array('_media-type' => 'application/vnd.ez.api.RoleAssignment+xml'), array('_media-type' => 'application/vnd.ez.api.RoleAssignment+xml')));
        $this->getParsingDispatcherMock()->expects($this->exactly(2))->method('parse')->with(array('_media-type' => 'application/vnd.ez.api.RoleAssignment+xml'), 'application/vnd.ez.api.RoleAssignment+xml')->will($this->returnValue('foo'));
        $result = $roleAssignmentListParser->parse($inputArray, $this->getParsingDispatcherMock());
        $this->assertEquals(array('foo', 'foo'), $result);
    }
RoleAssignmentListTest