Example #1
0
 /**
  * @return void
  */
 public function testTouchDeletedInsertsSomething()
 {
     $touchEntityQuery = $this->touchQueryContainer->queryTouchListByItemType('ProductTranslationWhatever');
     $touchCountBeforeTouch = $touchEntityQuery->count();
     $this->touchFacade->touchDeleted('ProductTranslationWhatever', 3);
     $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);
 }
Example #3
0
 /**
  * @return void
  */
 public function testDeleteDeleted()
 {
     $this->touchFacade->touchDeleted('ProductTranslationWhatever', 3);
     $number = $this->touchFacade->removeTouchEntriesMarkedAsDeleted();
     $this->assertGreaterThan(0, $number);
 }