From a29c6aed04bae791e5f6b6dfdda8d1d4b1224634 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 7 May 2010 15:09:14 -0700 Subject: [PATCH] Update mandatory_template_vars test for new Asset code. --- t/mandatory_template_vars.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;