Skip to content

Commit cdd854b

Browse files
author
Jakob Meissner
committed
update test to reflect change
1 parent 39f2dde commit cdd854b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Downloadable/Test/Unit/Block/Sales/Order/Email/Items/DownloadableTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function testGetLinks()
5959
{
6060
$item = $this->getMockBuilder(\Magento\Sales\Model\Order\Item::class)
6161
->disableOriginalConstructor()
62-
->setMethods(['getId'])
62+
->setMethods(['getOrderItemId'])
6363
->getMock();
6464
$linkPurchased = $this->getMockBuilder(\Magento\Downloadable\Model\Link\Purchased::class)
6565
->disableOriginalConstructor()
@@ -73,12 +73,12 @@ public function testGetLinks()
7373

7474
$this->block->setData('item', $item);
7575
$this->purchasedFactory->expects($this->once())->method('create')->willReturn($linkPurchased);
76-
$linkPurchased->expects($this->once())->method('load')->with('itemId', 'order_item_id')->willReturnSelf();
77-
$item->expects($this->any())->method('getId')->willReturn('itemId');
76+
$linkPurchased->expects($this->once())->method('load')->with('orderItemId', 'order_item_id')->willReturnSelf();
77+
$item->expects($this->any())->method('getOrderItemId')->willReturn('orderItemId');
7878
$this->itemsFactory->expects($this->once())->method('create')->willReturn($itemCollection);
7979
$itemCollection->expects($this->once())
8080
->method('addFieldToFilter')
81-
->with('order_item_id', 'itemId')
81+
->with('order_item_id', 'orderItemId')
8282
->willReturnSelf();
8383

8484
$this->assertEquals($linkPurchased, $this->block->getLinks());

0 commit comments

Comments
 (0)