Skip to content

Commit 4e32d06

Browse files
authored
Do change for Unit testing
1 parent 108c2c5 commit 4e32d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Test/Unit/Block/Product/ImageBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public function testCreateWithSimpleProduct($data, $expected)
306306
$simpleOptionMock = $this->createMock(\Magento\Wishlist\Model\Item\Option::class);
307307
$simpleProductMock = $this->createMock(\Magento\Catalog\Model\Product::class);
308308

309-
$productMock->expects($this->once())->method('getCustomOption')
309+
$productMock->expects($this->once())->method('getOptionById')
310310
->with('simple_product')->willReturn($simpleOptionMock);
311311

312312
$simpleOptionMock->expects($this->once())->method('getProduct')->willReturn($simpleProductMock);

0 commit comments

Comments
 (0)