Exemplo n.º 1
0
 /**
  * @return void
  */
 public function testTouchActiveInsertsSomething()
 {
     $touchEntityQuery = $this->touchQueryContainer->queryTouchListByItemType('ProductTranslationWhatever');
     $touchCountBeforeTouch = $touchEntityQuery->count();
     $this->touchFacade->touchActive('ProductTranslationWhatever', 1);
     $touchCountAfterTouch = $touchEntityQuery->count();
     $this->assertTrue($touchCountAfterTouch > $touchCountBeforeTouch);
 }
 /**
  * @param string $itemType
  * @param int $idItem
  * @param bool|false $keyChange
  *
  * @return bool
  */
 public function touchActive($itemType, $idItem, $keyChange = false)
 {
     return $this->touchFacade->touchActive($itemType, $idItem, $keyChange);
 }