Skip to content

Commit 70d1ccb

Browse files
authored
Update HtmlMinTest.php
1 parent fddecf0 commit 70d1ccb

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tests/HtmlMinTest.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -776,35 +776,35 @@ public function testHtmlInsideJavaScriptTemplates()
776776

777777
public function testOverwriteSpecialScriptTags()
778778
{
779-
$html = "<!doctype html>
780-
<html lang=\"nl\">
781-
<head>
782-
</head>
779+
$html = <<<HTML
780+
<!doctype html>
781+
<html lang="nl">
782+
<head></head>
783783
<body>
784-
<script type=\"text/x-custom\">
785-
<ul class=\"prices-tier items\">
784+
<script type="text/x-custom">
785+
<ul class="prices-tier items">
786786
<% _.each(tierPrices, function(item, key) { %>
787-
<% var priceStr = '<span class=\"price-container price-tier_price\">'
788-
+ '<span data-price-amount=\"' + priceUtils.formatPrice(item.price, currencyFormat) + '\"'
789-
+ ' data-price-type=\"\"' + ' class=\"price-wrapper \">'
790-
+ '<span class=\"price\">' + priceUtils.formatPrice(item.price, currencyFormat) + '</span>'
787+
<% var priceStr = '<span class="price-container price-tier_price">'
788+
+ '<span data-price-amount="' + priceUtils.formatPrice(item.price, currencyFormat) + '"'
789+
+ ' data-price-type=""' + ' class="price-wrapper ">'
790+
+ '<span class="price">' + priceUtils.formatPrice(item.price, currencyFormat) + '</span>'
791791
+ '</span>'
792792
+ '</span>'; %>
793-
<li class=\"item\">
793+
<li class="item">
794794
<%= 'some text %1 %2'.replace('%1', item.qty).replace('%2', priceStr) %>
795-
<strong class=\"benefit\">
796-
save <span class=\"percent tier-<%= key %>\">&nbsp;<%= item.percentage %></span>%
795+
<strong class="benefit">
796+
save <span class="percent tier-<%= key %>">&nbsp;<%= item.percentage %></span>%
797797
</strong>
798798
</li>
799799
<% }); %>
800800
</ul>
801801
</script>
802-
<div data-role=\"tier-price-block\">
802+
<div data-role="tier-price-block">
803803
<div> Some Content </div>
804804
</div>
805805
</body>
806-
</html>";
807-
806+
</html>
807+
HTML;
808808
$htmlMin = new voku\helper\HtmlMin();
809809
$htmlMin->overwriteSpecialScriptTags(['text/x-custom']);
810810
$expected = <<<HTML

0 commit comments

Comments
 (0)