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