fix ProfileCategory test misusing the API
This commit is contained in:
parent
71d7e4cb08
commit
c10787e40e
1 changed files with 3 additions and 1 deletions
|
|
@ -31,7 +31,9 @@ my $categories = WebGUI::ProfileCategory->getCategories($session);
|
|||
|
||||
my @labels = map { $_->getLabel } @{ $categories };
|
||||
|
||||
$categories->[0]->set({ visible => 0});
|
||||
my %properties = %{ $categories->[0]->get };
|
||||
$properties{visible} = 0;
|
||||
$categories->[0]->set(\%properties);
|
||||
|
||||
my $newCategories = WebGUI::ProfileCategory->getCategories($session);
|
||||
my @newLabels = map { $_->getLabel } @{ $newCategories };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue