Update tests for bad macros to check template attachments. Fixes bug #12087

This commit is contained in:
Colin Kuskie 2011-04-04 16:31:44 -07:00
parent 73261e4651
commit 83d1897852
6 changed files with 24 additions and 2 deletions

View file

@ -45,6 +45,16 @@ TEMPLATE: while (my $templateAsset = $getATemplate->()) {
type => 'Template',
}
}
foreach my $attachment (@{ $templateAsset->getAttachments }) {
if ($attachment->{url} =~ m!$hardcodedExtras! ) {
push @hardcodedExtras, {
url => $templateAsset->getUrl,
id => $templateAsset->getId,
title => $templateAsset->getTitle,
type => 'Template',
}
}
}
}
my $getASnippet = WebGUI::Asset::Snippet->getIsa($session);