Ejemplo 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');
 }
Ejemplo n.º 2
0
 public function getRoles()
 {
     return array_merge(parent::getRoles(), array(array('reply')));
 }
Ejemplo 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');
 }