Ejemplo n.º 1
0
 /**
  * @param array $roleNames
  *
  * @return bool
  */
 public function containsRole(array $roleNames = array())
 {
     return $this->roles->containsRole($roleNames);
 }
Ejemplo n.º 2
0
 public function testHasRole()
 {
     $this->assertEquals(true, $this->roles->hasRole('admin'));
     $this->assertEquals(false, $this->roles->hasRole('test'));
 }