Skip to content

Commit 08e05b3

Browse files
committed
apply latest patch to fix coding standards errors
1 parent 8306c07 commit 08e05b3

File tree

1 file changed

+26
-10
lines changed
  • lib/internal/Magento/Framework/Css/Test/Unit/PreProcessor/Adapter/Less

1 file changed

+26
-10
lines changed

lib/internal/Magento/Framework/Css/Test/Unit/PreProcessor/Adapter/Less/ProcessorTest.php

+26-10
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919

2020
class ProcessorTest extends TestCase
2121
{
22-
const TEST_CONTENT = 'test-content';
22+
private const TEST_CONTENT = 'test-content';
2323

24-
const ASSET_PATH = 'test-path';
24+
private const ASSET_PATH = 'test-path';
2525

26-
const TMP_PATH_LESS = '_file/test.less';
27-
const TMP_PATH_CSS_PRODUCTION = '_file/test-production.css';
28-
const TMP_PATH_CSS_DEVELOPER = '_file/test-developer.css';
26+
private const TMP_PATH_LESS = '_file/test.less';
27+
private const TMP_PATH_CSS_PRODUCTION = '_file/test-production.css';
28+
private const TMP_PATH_CSS_DEVELOPER = '_file/test-developer.css';
2929

30-
const ERROR_MESSAGE = 'Test exception';
30+
private const ERROR_MESSAGE = 'Test exception';
3131

3232
/**
3333
* @var Processor
@@ -179,8 +179,16 @@ public function testProcessContentNotEmpty()
179179

180180
$clearSymbol = ["\n", "\r", "\t", ' '];
181181
self::assertEquals(
182-
trim(str_replace($clearSymbol, '', file_get_contents(__DIR__ . '/' . self::TMP_PATH_CSS_PRODUCTION))),
183-
trim(str_replace($clearSymbol, '', $this->processor->processContent($assetMock)))
182+
trim(str_replace(
183+
$clearSymbol,
184+
'',
185+
file_get_contents(__DIR__ . '/' . self::TMP_PATH_CSS_PRODUCTION)
186+
)),
187+
trim(str_replace(
188+
$clearSymbol,
189+
'',
190+
$this->processor->processContent($assetMock)
191+
))
184192
);
185193
}
186194

@@ -214,8 +222,16 @@ public function testProcessContentNotEmptyInDeveloperMode()
214222

215223
$clearSymbol = ["\n", "\r", "\t", ' '];
216224
self::assertEquals(
217-
trim(str_replace($clearSymbol, '', file_get_contents(__DIR__ . '/' . self::TMP_PATH_CSS_DEVELOPER))),
218-
trim(str_replace($clearSymbol, '', $this->normalizeInlineSourceMap($this->processor->processContent($assetMock))))
225+
trim(str_replace(
226+
$clearSymbol,
227+
'',
228+
file_get_contents(__DIR__ . '/' . self::TMP_PATH_CSS_DEVELOPER)
229+
)),
230+
trim(str_replace(
231+
$clearSymbol,
232+
'',
233+
$this->normalizeInlineSourceMap($this->processor->processContent($assetMock))
234+
))
219235
);
220236
}
221237

0 commit comments

Comments
 (0)