Example #1
0
 public function testDelete()
 {
     $email = new Email();
     $this->objectManagerMock->shouldReceive('remove')->once()->with($email)->andReturn(true);
     $this->objectManagerMock->shouldReceive('flush')->once();
     $this->emailManager->delete($email);
 }