Exemple #1
0
 /**
  * @expectedException InvalidArgumentException
  */
 public function testDeleteHimself()
 {
     $user = new User();
     $property = new \ReflectionProperty($user, 'id');
     $property->setAccessible(TRUE);
     $property->setValue($user, 1);
     $this->auth->expects($this->once())->method('getIdentity')->will($this->returnValue(1));
     $this->service->delete($user);
 }