File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/code/Magento/Email/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments