Update tests for bad macros to check template attachments. Fixes bug #12087
This commit is contained in:
parent
73261e4651
commit
83d1897852
6 changed files with 24 additions and 2 deletions
|
|
@ -52,10 +52,13 @@ my @templateLabels;
|
|||
while (my $templateAsset = $getATemplate->()) {
|
||||
my $template = $templateAsset->get('template');
|
||||
my $header = $templateAsset->get('extraHeadTags');
|
||||
my $match = ($template =~ $macro);
|
||||
my $match = ($template =~ $macro);
|
||||
if ($header) {
|
||||
$match ||= ($header =~ $macro);
|
||||
}
|
||||
foreach my $attachment (@{ $templateAsset->getAttachments }) {
|
||||
$match ||= ($attachment->{url} =~ $macro);
|
||||
}
|
||||
ok(!$match, sprintf "%s: %s (%s) has no bad extras macros", $templateAsset->getTitle, $templateAsset->getId, $templateAsset->getUrl);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue