Skip to content

Commit c5eab1c

Browse files
committed
MAGETWO-90349: Template file 'header.html' is not found.
1 parent 9b1b80e commit c5eab1c

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

app/code/Magento/Email/Test/Unit/Model/AbstractTemplateTest.php

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,27 @@ public function testGetDesignConfig()
438438
* @return void
439439
*/
440440
public function testSetForcedAreaWhenAreaIsSet(): void
441+
{
442+
$templateId = 'test_template';
443+
$model = $this->getModelMock([], ['area' => null]);
444+
445+
$this->emailConfig->expects($this->once())
446+
->method('getTemplateArea')
447+
->with($templateId);
448+
449+
$model->setForcedArea($templateId);
450+
}
451+
452+
/**
453+
* @return void
454+
*/
455+
public function testNotSetForcedAreaWhenAreaIsSet(): void
441456
{
442457
$templateId = 'test_template';
443458
$model = $this->getModelMock([], ['area' => 'frontend']);
444459

445-
$this->emailConfig->expects($this->never())->method('getTemplateArea');
460+
$this->emailConfig->expects($this->never())
461+
->method('getTemplateArea');
446462

447463
$model->setForcedArea($templateId);
448464
}

0 commit comments

Comments
 (0)