Skip to content

Commit eab7da9

Browse files
committed
AC-2391: Remove legacy variable resolver from email template processor
- fix unit tests
1 parent 54c3249 commit eab7da9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected function setUp(): void
9797
->getMockForAbstractClass();
9898

9999
$this->store = $this->getMockBuilder(Store::class)
100-
->setMethods(['getFrontendName', 'getId'])
100+
->setMethods(['getFrontendName', 'getId', 'getFormattedAddress'])
101101
->disableOriginalConstructor()
102102
->getMock();
103103
$this->store->expects($this->any())
@@ -106,6 +106,9 @@ protected function setUp(): void
106106
$this->store->expects($this->any())
107107
->method('getFrontendName')
108108
->willReturn('storeId');
109+
$this->store->expects($this->any())
110+
->method('getFormattedAddress')
111+
->willReturn("Test Store\n Street 1");
109112
$this->storeManager->expects($this->any())
110113
->method('getStore')
111114
->willReturn($this->store);

0 commit comments

Comments
 (0)