Skip to content

Commit 1e50859

Browse files
committed
Stub constant updated
1 parent 2881e48 commit 1e50859

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/code/Magento/Theme/Controller/Result/AsyncCssPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
class AsyncCssPlugin
1818
{
19-
const XML_PATH_USE_CSS_CRITICAL_PATH = 'dev/css/use_css_critical_path';
19+
private const XML_PATH_USE_CSS_CRITICAL_PATH = 'dev/css/use_css_critical_path';
2020

2121
/**
2222
* @var ScopeConfigInterface

app/code/Magento/Theme/Test/Unit/Controller/Result/AsyncCssPluginTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
*/
2121
class AsyncCssPluginTest extends TestCase
2222
{
23+
const STUB_XML_PATH_USE_CSS_CRITICAL_PATH = 'dev/css/use_css_critical_path';
24+
2325
/**
2426
* @var AsyncCssPlugin
2527
*/
@@ -107,7 +109,7 @@ public function testBeforeSendResponse($content, $isSetFlag, $result): void
107109
$this->scopeConfigMock->expects($this->once())
108110
->method('isSetFlag')
109111
->with(
110-
AsyncCssPlugin::XML_PATH_USE_CSS_CRITICAL_PATH,
112+
self::STUB_XML_PATH_USE_CSS_CRITICAL_PATH,
111113
ScopeInterface::SCOPE_STORE
112114
)
113115
->willReturn($isSetFlag);
@@ -133,7 +135,7 @@ public function testIfGetContentIsNotAString(): void
133135
$this->scopeConfigMock->expects($this->any())
134136
->method('isSetFlag')
135137
->with(
136-
AsyncCssPlugin::XML_PATH_USE_CSS_CRITICAL_PATH,
138+
self::STUB_XML_PATH_USE_CSS_CRITICAL_PATH,
137139
ScopeInterface::SCOPE_STORE
138140
)
139141
->willReturn(false);

0 commit comments

Comments
 (0)