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

testParse() public method

Tests the location parser.
public testParse ( ) : eZ\Publish\API\Repository\Values\Content\Location
return eZ\Publish\API\Repository\Values\Content\Location
    public function testParse()
    {
        $locationParser = $this->getParser();
        $inputArray = array('_href' => '/content/locations/1/2/21/42', 'priority' => '0', 'hidden' => 'false', 'invisible' => 'false', 'remoteId' => 'remote-id', 'ParentLocation' => array('_href' => '/content/locations/1/2/21'), 'pathString' => '/1/2/21/42', 'depth' => '3', 'Content' => array('_href' => '/content/objects/42'), 'sortField' => 'PATH', 'sortOrder' => 'ASC');
        $result = $locationParser->parse($inputArray, $this->getParsingDispatcherMock());
        $this->assertNotNull($result);
        return $result;
    }