12
12
*/
13
13
class MinifierTest extends \PHPUnit_Framework_TestCase
14
14
{
15
- /**
16
- * Request path for test minifier
17
- */
18
- const REQUEST_PATH = '/frontend/Magento/blank/en_US/css/styles.css ' ;
19
-
20
15
/**
21
16
* @var \Magento\Framework\ObjectManagerInterface
22
17
*/
23
18
protected $ objectManager ;
24
19
25
-
26
20
protected function setUp ()
27
21
{
28
22
$ this ->objectManager = Bootstrap::getInstance ()->getObjectManager ();
@@ -125,7 +119,7 @@ protected function _testCssMinification($requestedUri, $requestedFilePath, $test
125
119
public function testCssMinification ()
126
120
{
127
121
$ this ->_testCssMinification (
128
- self :: REQUEST_PATH ,
122
+ ' /frontend/Magento/blank/en_US/css/styles.css ' ,
129
123
'/frontend/Magento/blank/web/css/styles.css ' ,
130
124
dirname (__DIR__ ) . '/_files/static/css/styles.css ' ,
131
125
function ($ path ) {
@@ -144,7 +138,7 @@ function ($path) {
144
138
public function testCssMinificationOff ()
145
139
{
146
140
$ this ->_testCssMinification (
147
- self :: REQUEST_PATH ,
141
+ ' /frontend/Magento/blank/en_US/css/styles.css ' ,
148
142
'/frontend/Magento/blank/web/css/styles.css ' ,
149
143
dirname (__DIR__ ) . '/_files/static/css/styles.css ' ,
150
144
function ($ path ) {
@@ -166,9 +160,9 @@ function ($path) {
166
160
public function testCssMinificationForMinifiedFiles ()
167
161
{
168
162
$ this ->_testCssMinification (
169
- '/frontend/Magento/blank/en_US/css/styles.min.css ' ,
170
- '/frontend/Magento/blank/web/css/styles.min.css ' ,
171
- dirname (__DIR__ ) . '/_files/static/css/styles.min.css ' ,
163
+ '/frontend/Magento/blank/en_US/css/preminified- styles.min.css ' ,
164
+ '/frontend/Magento/blank/web/css/preminified- styles.min.css ' ,
165
+ dirname (__DIR__ ) . '/_files/static/css/preminified- styles.min.css ' ,
172
166
function ($ path ) {
173
167
$ content = file_get_contents ($ path );
174
168
$ this ->assertNotEmpty ($ content );
0 commit comments