Update mandatory_template_vars test for new Asset code.
This commit is contained in:
parent
ea17973b30
commit
a29c6aed04
1 changed files with 1 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ plan tests => $numTests;
|
||||||
|
|
||||||
foreach my $tmpl ( @tmplVarTable ) {
|
foreach my $tmpl ( @tmplVarTable ) {
|
||||||
my $tmplId = $tmpl->{id};
|
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");
|
my $tmplExists = is(ref($tmplAsset), 'WebGUI::Asset::Template', "$tmplId exists");
|
||||||
SKIP: {
|
SKIP: {
|
||||||
skip("$tmplId could not be found", $tmpl->{numTests} ) unless $tmplExists;
|
skip("$tmplId could not be found", $tmpl->{numTests} ) unless $tmplExists;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue