public function testDelete() { $user = new User(); $this->objectManagerMock->shouldReceive('remove')->once()->with($user)->andReturn(true); $this->objectManagerMock->shouldReceive('flush')->once(); $this->userManager->delete($user); }
public function testDelete() { $employee = new Employee(); $this->objectManagerMock->shouldReceive('remove')->once()->with($employee)->andReturn(true); $this->objectManagerMock->shouldReceive('flush')->once(); $this->employeeManager->delete($employee); }
public function testDelete() { $project = new Project(); $this->objectManagerMock->shouldReceive('remove')->once()->with($project)->andReturn(true); $this->objectManagerMock->shouldReceive('flush')->once(); $this->projectManager->delete($project); }
public function testDelete() { $company = new Company(); $this->objectManagerMock->shouldReceive('remove')->once()->with($company)->andReturn(true); $this->objectManagerMock->shouldReceive('flush')->once(); $this->companyManager->delete($company); }