eZ\Publish\Core\REST\Common\Tests\Input\ParserToolsTest::testParseObjectElementNotEmbedded PHP Method

testParseObjectElementNotEmbedded() public method

    public function testParseObjectElementNotEmbedded()
    {
        $parserTools = $this->getParserTools();
        $dispatcherMock = $this->getMock('eZ\\Publish\\Core\\REST\\Common\\Input\\ParsingDispatcher', array(), array(), '', false);
        $dispatcherMock->expects($this->never())->method('parse');
        $parsingInput = array('_href' => '/foo/bar', '_media-type' => 'application/my-type', '#someTextContent' => 'foo');
        $this->assertEquals('/foo/bar', $parserTools->parseObjectElement($parsingInput, $dispatcherMock));
    }