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