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