/** * @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); }
/** * @return void */ public function testDeleteDeleted() { $this->touchFacade->touchDeleted('ProductTranslationWhatever', 3); $number = $this->touchFacade->removeTouchEntriesMarkedAsDeleted(); $this->assertGreaterThan(0, $number); }