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
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 );
You can’t perform that action at this time.
0 commit comments