File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/code/Magento/CatalogImportExport/Test/Unit/Model/Export Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -270,11 +270,15 @@ public function testGetHeaderColumns()
270
270
$ headerColumnsValue = ['headerColumns value ' ];
271
271
$ expectedResult = 'result ' ;
272
272
$ this ->setPropertyValue ($ product , '_headerColumns ' , $ headerColumnsValue );
273
- $ product
274
- ->expects ($ this ->once ())
273
+ $ this -> setPropertyValue ( $ product, ' rowCustomizer ' , $ this -> rowCustomizer );
274
+ $ product ->expects ($ this ->once ())
275
275
->method ('_customHeadersMapping ' )
276
276
->with ($ headerColumnsValue )
277
277
->willReturn ($ expectedResult );
278
+ $ this ->rowCustomizer ->expects ($ this ->once ())
279
+ ->method ('addHeaderColumns ' )
280
+ ->with ($ headerColumnsValue )
281
+ ->willReturn ($ headerColumnsValue );
278
282
279
283
$ result = $ product ->_getHeaderColumns ();
280
284
You can’t perform that action at this time.
0 commit comments