예제 #1
0
파일: TouchTest.php 프로젝트: spryker/Touch
 /**
  * @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);
 }
예제 #2
0
파일: TouchTest.php 프로젝트: spryker/Touch
 /**
  * @return void
  */
 public function testDeleteDeleted()
 {
     $this->touchFacade->touchDeleted('ProductTranslationWhatever', 3);
     $number = $this->touchFacade->removeTouchEntriesMarkedAsDeleted();
     $this->assertGreaterThan(0, $number);
 }