Skip to content

Commit 57aec98

Browse files
author
Cari Spruiell
committed
MAGETWO-52766: [Github] Template Minification is broken on the front-end #4365
- add <link> to test
1 parent 3ee3850 commit 57aec98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/internal/Magento/Framework/View/Test/Unit/Template/Html/MinifierTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ public function testMinify()
124124
<head>
125125
<title>Test title</title>
126126
</head>
127+
<link rel="stylesheet" href='https://www.example.com/2' type="text/css" />
128+
<link rel="stylesheet" type="text/css" media="all" href="https://www.example.com/1" type="text/css" />
127129
<body>
128130
<a href="http://somelink.com/text.html">Text Link</a>
129131
<img src="test.png" alt="some text" />
@@ -158,7 +160,7 @@ public function testMinify()
158160
TEXT;
159161

160162
$expectedContent = <<<TEXT
161-
<?php /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ ?> <?php ?> <html><head><title>Test title</title></head><body><a href="http://somelink.com/text.html">Text Link</a> <img src="test.png" alt="some text" /><?php echo \$block->someMethod(); ?> <div style="width: 800px" class="<?php echo \$block->getClass() ?>" /><script>
163+
<?php /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ ?> <?php ?> <html><head><title>Test title</title></head><link rel="stylesheet" href='https://www.example.com/2' type="text/css" /><link rel="stylesheet" type="text/css" media="all" href="https://www.example.com/1" type="text/css" /><body><a href="http://somelink.com/text.html">Text Link</a> <img src="test.png" alt="some text" /><?php echo \$block->someMethod(); ?> <div style="width: 800px" class="<?php echo \$block->getClass() ?>" /><script>
162164
var i = 1;
163165
var j = 1;
164166

0 commit comments

Comments
 (0)