Skip to content

Commit 87ea7b0

Browse files
author
Serhii Balko
committed
Merge remote-tracking branch 'origin/MC-41525' into 2.4-develop-pr57
2 parents a84b678 + 1476f9c commit 87ea7b0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/Payment/Helper/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function getInfoBlock(InfoInterface $info, LayoutInterface $layout = null
200200
*/
201201
public function getInfoBlockHtml(InfoInterface $info, $storeId)
202202
{
203-
$this->_appEmulation->startEnvironmentEmulation($storeId);
203+
$this->_appEmulation->startEnvironmentEmulation($storeId, \Magento\Framework\App\Area::AREA_FRONTEND, true);
204204

205205
try {
206206
// Retrieve specified view block from appropriate design package (depends on emulated store)

app/code/Magento/Payment/Test/Unit/Helper/DataTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ public function testGetInfoBlockHtml()
234234
->setMethods(['setArea', 'setIsSecureMode', 'getMethod', 'setStore', 'toHtml', 'setInfo'])
235235
->getMockForAbstractClass();
236236

237-
$this->appEmulation->expects($this->once())->method('startEnvironmentEmulation')->with($storeId);
237+
$this->appEmulation->expects($this->once())
238+
->method('startEnvironmentEmulation')
239+
->with($storeId, \Magento\Framework\App\Area::AREA_FRONTEND, true);
238240
$infoMock->expects($this->once())->method('getMethodInstance')->willReturn($methodMock);
239241
$methodMock->expects($this->once())->method('getInfoBlockType')->willReturn($blockType);
240242
$this->layoutMock->expects($this->once())->method('createBlock')

0 commit comments

Comments
 (0)