Skip to content

Commit 014cec6

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/Newsletter/Test/Unit/Model/TemplateTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ protected function setUp(): void
136136
->getMockForAbstractClass();
137137

138138
$this->storeMock = $this->getMockBuilder(Store::class)
139-
->setMethods(['getFrontendName', 'getId'])
139+
->setMethods(['getFrontendName', 'getId', 'getFormattedAddress'])
140140
->disableOriginalConstructor()
141141
->getMock();
142142

@@ -148,6 +148,10 @@ protected function setUp(): void
148148
->method('getFrontendName')
149149
->willReturn('storeId');
150150

151+
$this->storeMock->expects($this->any())
152+
->method('getFormattedAddress')
153+
->willReturn("Test Store\n Street 1");
154+
151155
$this->storeManagerMock->expects($this->any())
152156
->method('getStore')
153157
->willReturn($this->storeMock);

0 commit comments

Comments
 (0)