eZ\Publish\Core\REST\Server\Tests\Input\Parser\Criterion\UserMetadataTest::testParse PHP Method

testParse() public method

Tests the UserMetadata parser.
public testParse ( $data, $expected )
    public function testParse($data, $expected)
    {
        $userMetadata = $this->getParser();
        $result = $userMetadata->parse($data, $this->getParsingDispatcherMock());
        $this->assertEquals($expected, $result, 'UserMetadata parser not created correctly.');
    }