File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
app/code/Magento/CatalogImportExport Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -1008,7 +1008,7 @@ public function export()
1008
1008
$ this ->paginateCollection ($ page , $ this ->getItemsPerPage ());
1009
1009
1010
1010
$ exportData = $ this ->getExportData ();
1011
- if (count ($ exportData ) == 0 ) {
1011
+ if ($ exportData == null || count ($ exportData ) == 0 ) {
1012
1012
break ;
1013
1013
}
1014
1014
if ($ page == 1 ) {
Original file line number Diff line number Diff line change @@ -343,8 +343,6 @@ public function testExportCountZeroBreakInternalCalls()
343
343
$ this ->product ->expects ($ this ->once ())->method ('paginateCollection ' )->with ($ page , $ itemsPerPage );
344
344
$ this ->abstractCollection ->expects ($ this ->once ())->method ('setOrder ' )->with ('entity_id ' , 'asc ' );
345
345
346
- $ this ->abstractCollection ->expects ($ this ->once ())->method ('count ' )->willReturn (0 );
347
-
348
346
$ this ->abstractCollection ->expects ($ this ->never ())->method ('getCurPage ' );
349
347
$ this ->abstractCollection ->expects ($ this ->never ())->method ('getLastPageNumber ' );
350
348
$ this ->product ->expects ($ this ->never ())->method ('_getHeaderColumns ' );
You can’t perform that action at this time.
0 commit comments