public function test_can_remove_assigned_role() { $role = new UsherRole(); $role->setName('Admin'); $this->entity->assignRole($role); $this->assertCount(1, $this->entity->getRoles()); $this->entity->removeRole($role); $this->assertCount(0, $this->entity->getRoles()); }