Skip to content

Commit 7d30fdb

Browse files
committed
unit test chnages by with additional changes
1 parent 6472ff7 commit 7d30fdb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product/CollectionTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ public function testAddMediaGalleryData()
309309
$this->connectionMock->expects($this->once())->method('fetchAll')->with($selectMock)->willReturn(
310310
[['row_id' => $rowId]]
311311
);
312+
$this->galleryReadHandlerMock->expects($this->once())->method('sortMediaEntriesByPosition')
313+
->willReturn($mediaGalleriesMock);
312314
$this->galleryReadHandlerMock->expects($this->once())->method('addMediaDataToProduct')
313315
->with($itemMock, $mediaGalleriesMock);
314316

0 commit comments

Comments
 (0)