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