Ejemplo n.º 1
0
 public function testDelete()
 {
     $projectStatus = new ProjectStatus();
     $this->objectManagerMock->shouldReceive('remove')->once()->with($projectStatus)->andReturn(true);
     $this->objectManagerMock->shouldReceive('flush')->once();
     $this->projectStatusManager->delete($projectStatus);
 }
Ejemplo n.º 2
0
 public function testDelete()
 {
     $timeCategory = new TimeCategory();
     $this->objectManagerMock->shouldReceive('remove')->once()->with($timeCategory)->andReturn(true);
     $this->objectManagerMock->shouldReceive('flush')->once();
     $this->timeCategoryManager->delete($timeCategory);
 }
Ejemplo n.º 3
0
 public function testDelete()
 {
     $company = new Company();
     $this->objectManagerMock->shouldReceive('remove')->once()->with($company)->andReturn(true);
     $this->objectManagerMock->shouldReceive('flush')->once();
     $this->companyManager->delete($company);
 }
Ejemplo n.º 4
0
 public function testDelete()
 {
     $employee = new Employee();
     $this->objectManagerMock->shouldReceive('remove')->once()->with($employee)->andReturn(true);
     $this->objectManagerMock->shouldReceive('flush')->once();
     $this->employeeManager->delete($employee);
 }