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);
 }
Example #2
0
 /**
  * @return int
  */
 public function getTotalItems()
 {
     return $this->emailManager->count();
 }