File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Product Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,20 @@ protected function setUp()
121
121
->getMock ();
122
122
$ this ->resultJsonFactory ->expects ($ this ->any ())->method ('create ' )->willReturn ($ this ->resultJson );
123
123
124
+ $ storeManagerInterfaceMock = $ this ->getMockForAbstractClass (
125
+ 'Magento\Store\Model\StoreManagerInterface ' ,
126
+ [],
127
+ '' ,
128
+ false ,
129
+ true ,
130
+ true ,
131
+ ['getStore ' , 'getCode ' ]
132
+ );
133
+
134
+ $ storeManagerInterfaceMock ->expects ($ this ->any ())
135
+ ->method ('getStore ' )
136
+ ->will ($ this ->returnSelf ());
137
+
124
138
$ additionalParams = ['resultRedirectFactory ' => $ this ->resultRedirectFactory ];
125
139
$ this ->action = (new ObjectManagerHelper ($ this ))->getObject (
126
140
'Magento\Catalog\Controller\Adminhtml\Product\Validate ' ,
@@ -132,6 +146,7 @@ protected function setUp()
132
146
'initializationHelper ' => $ this ->initializationHelper ,
133
147
'resultJsonFactory ' => $ this ->resultJsonFactory ,
134
148
'productFactory ' => $ this ->productFactory ,
149
+ 'storeManager ' => $ storeManagerInterfaceMock ,
135
150
]
136
151
);
137
152
}
You can’t perform that action at this time.
0 commit comments