getUrl() public method

Get document url
public getUrl ( boolean $forceCanonical = false ) : string
$forceCanonical boolean Force canonical url
return string
Example #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testGetUrl()
 {
     $this->assertEquals('/parent/url-key', $this->object->getUrl());
     $this->assertEquals('http:///parent/url-key', $this->object->getUrl(true));
 }