Ejemplo n.º 1
0
 public function testExecute()
 {
     $entityType = 'SomeNameSpace\\SomeClassName';
     $entity = ['name' => 'test'];
     $this->deleteMainMock->expects($this->once())->method('execute')->with($entityType, $entity);
     $this->deleteExtensionMock->expects($this->once())->method('execute')->with($entityType, $entity);
     $this->deleteRelationMock->expects($this->once())->method('execute')->with($entityType, $entity);
     $this->assertTrue($this->delete->execute($entityType, $entity));
 }