Exemplo n.º 1
0
 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')));
 }
Exemplo n.º 3
0
 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');
 }