Пример #1
0
 /**
  * @return void
  */
 public function testTouchUrlActive()
 {
     $locale = $this->localeFacade->createLocale('ABCDE');
     $redirect = $this->urlFacade->createRedirect('/ARedirectUrl');
     $idUrl = $this->urlFacade->createUrl('/aPageUrl', $locale, 'redirect', $redirect->getIdUrlRedirect())->getIdUrl();
     $touchQuery = $this->touchQueryContainer->queryTouchEntry('url', $idUrl);
     $touchQuery->setQueryKey('count');
     $this->assertEquals(0, $touchQuery->count());
     $touchQuery->setQueryKey(TouchQueryContainer::TOUCH_ENTRY_QUERY_KEY);
     $this->urlFacade->touchUrlActive($idUrl);
     $touchQuery->setQueryKey('count');
     $this->assertEquals(1, $touchQuery->count());
 }
 /**
  * @param int $idUrl
  *
  * @return void
  */
 public function touchUrlActive($idUrl)
 {
     $this->urlFacade->touchUrlActive($idUrl);
 }