示例#1
0
 /**
  * @return void
  */
 public function testGetUrlByPath()
 {
     $locale = $this->localeFacade->createLocale('DFGHE');
     $redirect = $this->urlFacade->createRedirect('/SoManyPageUrls5');
     $this->urlFacade->createUrl('/someOtherPageUrl', $locale, 'redirect', $redirect->getIdUrlRedirect());
     $url = $this->urlFacade->getUrlByPath('/someOtherPageUrl');
     $this->assertNotNull($url);
     $this->assertEquals('/someOtherPageUrl', $url->getUrl());
     $this->assertEquals($locale->getIdLocale(), $url->getFkLocale());
 }
 /**
  * @param string $urlString
  *
  * @return \Generated\Shared\Transfer\UrlTransfer
  */
 public function getUrlByPath($urlString)
 {
     return $this->urlFacade->getUrlByPath($urlString);
 }