Restore the original properties for the profile category that was modified for test.
This commit is contained in:
parent
c10787e40e
commit
c84e875612
1 changed files with 3 additions and 1 deletions
|
|
@ -31,7 +31,8 @@ my $categories = WebGUI::ProfileCategory->getCategories($session);
|
|||
|
||||
my @labels = map { $_->getLabel } @{ $categories };
|
||||
|
||||
my %properties = %{ $categories->[0]->get };
|
||||
my %originalProperties = %{ $categories->[0]->get };
|
||||
my %properties = %originalProperties;
|
||||
$properties{visible} = 0;
|
||||
$categories->[0]->set(\%properties);
|
||||
|
||||
|
|
@ -41,4 +42,5 @@ my @newLabels = map { $_->getLabel } @{ $newCategories };
|
|||
cmp_bag(\@newLabels, \@labels, 'Setting a category to not be visible does not change its availability through getCategories, with no options');
|
||||
|
||||
END {
|
||||
$categories->[0]->set(\%originalProperties);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue