File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/Newsletter/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ protected function setUp(): void
136
136
->getMockForAbstractClass ();
137
137
138
138
$ this ->storeMock = $ this ->getMockBuilder (Store::class)
139
- ->setMethods (['getFrontendName ' , 'getId ' ])
139
+ ->setMethods (['getFrontendName ' , 'getId ' , ' getFormattedAddress ' ])
140
140
->disableOriginalConstructor ()
141
141
->getMock ();
142
142
@@ -148,6 +148,10 @@ protected function setUp(): void
148
148
->method ('getFrontendName ' )
149
149
->willReturn ('storeId ' );
150
150
151
+ $ this ->storeMock ->expects ($ this ->any ())
152
+ ->method ('getFormattedAddress ' )
153
+ ->willReturn ("Test Store \n Street 1 " );
154
+
151
155
$ this ->storeManagerMock ->expects ($ this ->any ())
152
156
->method ('getStore ' )
153
157
->willReturn ($ this ->storeMock );
You can’t perform that action at this time.
0 commit comments