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