getUrl() public method

Returns the current url path.
public getUrl ( ) : string
return string
Beispiel #1
0
 public function testSetGetUrl()
 {
     $url = 'http://api.example.com/mock-api-class-router/';
     $r = new Router('ExampleApi', 'Webiny\\Component\\Rest\\Tests\\Mocks\\MockApiClassRouter', true, self::$cache);
     $r->setUrl($url);
     $this->assertSame('/mock-api-class-router/', $r->getUrl());
 }