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