diff --git a/t/Form/ProfileEnabled.t b/t/Form/ProfileEnabled.t index 9a8a0562f..8dc171bcb 100644 --- a/t/Form/ProfileEnabled.t +++ b/t/Form/ProfileEnabled.t @@ -30,7 +30,7 @@ my $session = WebGUI::Test->session; # put your tests here -my @formTypes = sort @{ WebGUI::Form::FieldType->getTypes($session) }; +my @formTypes = sort keys %{ WebGUI::Form::FieldType->new($session)->getTypes() }; ##We have to remove DynamicField from this list, since when you call new ##it wants to return a type. We'll check it manually.