Skip to content

Commit 27627ca

Browse files
author
Gabriel Galvao da Gama
committed
Fixed unit tests
1 parent c57d4d0 commit 27627ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Bundle/Test/Unit/Model/LinkManagementTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ public function testAddChildCouldNotSave()
549549
$productLink->method('getOptionId')->willReturn(1);
550550
$productLink->method('getSelectionId')->willReturn(1);
551551

552-
$this->metadataMock->expects($this->once())->method('getLinkField')->willReturn($this->linkField);
552+
$this->metadataMock->expects($this->exactly(2))->method('getLinkField')->willReturn($this->linkField);
553553
$productMock = $this->createMock(Product::class);
554554
$productMock->expects($this->once())
555555
->method('getTypeId')
@@ -626,7 +626,7 @@ public function testAddChild()
626626
$productLink->method('getOptionId')->willReturn(1);
627627
$productLink->method('getSelectionId')->willReturn(1);
628628

629-
$this->metadataMock->expects($this->once())->method('getLinkField')->willReturn($this->linkField);
629+
$this->metadataMock->expects($this->exactly(2))->method('getLinkField')->willReturn($this->linkField);
630630
$productMock = $this->createMock(Product::class);
631631
$productMock->expects($this->once())->method('getTypeId')->willReturn(Type::TYPE_BUNDLE);
632632
$productMock

0 commit comments

Comments
 (0)