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

testParseExceptionOnWrongValueType() public method

Test UserMetadata parser throwing exception on wrong type of value format.
    public function testParseExceptionOnWrongValueType()
    {
        $inputArray = ['UserMetadataCriterion' => ['Target' => 'We will mock you', 'Value' => new \stdClass()]];
        $dataKeyValueObjectClass = $this->getParser();
        $dataKeyValueObjectClass->parse($inputArray, $this->getParsingDispatcherMock());
    }