예제 #1
0
 public function test_can_remove_all_roles()
 {
     $role = new UsherRole();
     $role->setName('Admin');
     $this->entity->assignRole($role);
     $this->assertCount(1, $this->entity->getRoles());
     $this->entity->removeAllRoles();
     $this->assertCount(0, $this->entity->getRoles());
 }