public function testDelete() { $email = new Email(); $this->objectManagerMock->shouldReceive('remove')->once()->with($email)->andReturn(true); $this->objectManagerMock->shouldReceive('flush')->once(); $this->emailManager->delete($email); }
/** * @return int */ public function getTotalItems() { return $this->emailManager->count(); }