Exemplo n.º 1
0
Arquivo: MainTest.php Projeto: jasny/Q
 /**
  * Tests Auth->authz() with multiple getRoles() where authorization fails
  */
 public function testAuthz_Roles_FailMultiple()
 {
     $this->Auth->login('monkey', 'mark');
     $this->setExpectedException('Q\\Authz_Exception', "User 'monkey' is not in roles 'ape', 'pretty'.");
     $this->Auth->authz('primate', 'ape', 'pretty');
 }