Skip to content

Commit d92b679

Browse files
committed
fix: change unit test back to test for the setForcedArea method
1 parent 0dec988 commit d92b679

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Theme/Test/Unit/Model/Design/Config/ValidatorTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function setUp()
4949
->setMethods(
5050
[
5151
'emulateDesign',
52+
'setForcedArea',
5253
'loadDefault',
5354
'getTemplateText',
5455
'revertDesign',
@@ -76,6 +77,7 @@ public function testGetDefaultTemplateTextDefaultScope()
7677
$this->templateFactory->expects($this->once())->method('create');
7778
$this->designConfig->expects($this->any())->method('getScope')->willReturn('default');
7879
$this->template->expects($this->once())->method('emulateDesign');
80+
$this->template->expects($this->once())->method('setForcedArea')->with($templateId);
7981
$this->template->expects($this->once())->method('loadDefault')->with($templateId);
8082
$this->template->expects($this->once())->method('getTemplateText');
8183
$this->template->expects($this->once())->method('revertDesign');

0 commit comments

Comments
 (0)