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