@@ -59,7 +59,7 @@ public function testGetLinks()
59
59
{
60
60
$ item = $ this ->getMockBuilder (\Magento \Sales \Model \Order \Item::class)
61
61
->disableOriginalConstructor ()
62
- ->setMethods (['getId ' ])
62
+ ->setMethods (['getOrderItemId ' ])
63
63
->getMock ();
64
64
$ linkPurchased = $ this ->getMockBuilder (\Magento \Downloadable \Model \Link \Purchased::class)
65
65
->disableOriginalConstructor ()
@@ -73,12 +73,12 @@ public function testGetLinks()
73
73
74
74
$ this ->block ->setData ('item ' , $ item );
75
75
$ 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 ' );
78
78
$ this ->itemsFactory ->expects ($ this ->once ())->method ('create ' )->willReturn ($ itemCollection );
79
79
$ itemCollection ->expects ($ this ->once ())
80
80
->method ('addFieldToFilter ' )
81
- ->with ('order_item_id ' , 'itemId ' )
81
+ ->with ('order_item_id ' , 'orderItemId ' )
82
82
->willReturnSelf ();
83
83
84
84
$ this ->assertEquals ($ linkPurchased , $ this ->block ->getLinks ());
0 commit comments