public function setup() { parent::setup(); $this->roleAcl = new RoleThreadAcl($this->securityContext, $this->createRole, $this->viewRole, $this->editRole, $this->deleteRole, ''); $this->passObject = $this->getMock('FOS\\CommentBundle\\Model\\ThreadInterface'); }
public function getRoles() { return array_merge(parent::getRoles(), array(array('reply'))); }
public function setUp() { parent::setUp(); $this->roleAcl = new RoleVoteAcl($this->authorizationChecker, $this->createRole, $this->viewRole, $this->editRole, $this->deleteRole, ''); $this->passObject = $this->getMock('FOS\\CommentBundle\\Model\\VoteInterface'); }