Пример #1
0
 /**
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage $role must be an instance of Oro\Bundle\UserBundle\Entity\Role or a string
  */
 public function testRemoveRoleThrowsInvalidArgumentException()
 {
     $this->group->removeRole(new \stdClass());
 }
 /**
  * {@inheritDoc}
  */
 public function removeRole($role)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'removeRole', array($role));
     return parent::removeRole($role);
 }