Esempio n. 1
0
 public function testDelete()
 {
     $user = new User();
     $this->objectManagerMock->shouldReceive('remove')->once()->with($user)->andReturn(true);
     $this->objectManagerMock->shouldReceive('flush')->once();
     $this->userManager->delete($user);
 }
Esempio n. 2
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);
 }
Esempio n. 3
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);
 }
Esempio n. 4
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);
 }