diff --git a/t/mandatory_template_vars.t b/t/mandatory_template_vars.t index cd85dbe59..c42819532 100644 --- a/t/mandatory_template_vars.t +++ b/t/mandatory_template_vars.t @@ -165,7 +165,7 @@ plan tests => $numTests; foreach my $tmpl ( @tmplVarTable ) { my $tmplId = $tmpl->{id}; - my $tmplAsset = WebGUI::Asset->newByDynamicClass($session, $tmplId); + my $tmplAsset = eval { WebGUI::Asset->newById($session, $tmplId); }; my $tmplExists = is(ref($tmplAsset), 'WebGUI::Asset::Template', "$tmplId exists"); SKIP: { skip("$tmplId could not be found", $tmpl->{numTests} ) unless $tmplExists;