コード例 #1
0
 public function testOnFlushAndPostFlushNotUpdatesIndexWhenNotActive()
 {
     $this->uow->expects($this->once())->method('getScheduledEntityInsertions')->will($this->returnValue(array()));
     $this->uow->expects($this->once())->method('getScheduledEntityUpdates')->will($this->returnValue(array()));
     $this->uow->expects($this->once())->method('getScheduledEntityDeletions')->will($this->returnValue(array()));
     $this->engine->expects($this->never())->method($this->anything());
     $this->entityManager->expects($this->never())->method('flush');
     $this->listener->onFlush($this->onFlushArgs);
     $this->listener->postFlush($this->postFlushArgs);
 }