Ejemplo n.º 1
0
 public function testHasACLChecksMemberVariable()
 {
     $aclContainer = $this->_getAcl();
     $acl = $aclContainer['acl'];
     $this->assertEquals(false, $this->_helper->hasAcl());
     $this->_helper->setAcl($acl);
     $this->assertEquals(true, $this->_helper->hasAcl());
 }
Ejemplo n.º 2
0
 public function testUseAclResourceFromPages()
 {
     $acl = $this->_getAcl();
     $this->_helper->setAcl($acl['acl']);
     $this->_helper->setRole($acl['role']);
     $expected = $this->_getExpected('bc/acl.html');
     $this->assertEquals($expected, $this->_helper->render());
 }